tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

coding_style_general.rst (680B)


      1 Mode line
      2 ~~~~~~~~~
      3 
      4 Files should have Emacs and vim mode line comments as the first two
      5 lines of the file, which should set ``indent-tabs-mode`` to ``nil``. For new
      6 files, use the following, specifying two-space indentation:
      7 
      8 .. code-block:: cpp
      9 
     10   /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     11   /* vim: set ts=2 et sw=2 tw=80: */
     12   /* This Source Code Form is subject to the terms of the Mozilla Public
     13    * License, v. 2.0. If a copy of the MPL was not distributed with this
     14    * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
     15 
     16 Be sure to use the correct ``Mode`` in the first line, don't use ``C++`` in
     17 JavaScript files.