You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
DesertPunk b7313b0c28
Add files via upload
5 years ago
.gitignore ignore nano `search_history` 6 years ago
.travis.yml introduce travis/shellcheck 6 years ago
Dockerfile.nanorc Add missing keywords to Dockerfile 5 years ago
Readme.rst more tilde 5 years ago
apacheconf.nanorc Color trailing whitespace green 7 years ago
arduino.nanorc Rename syntax definitions 8 years ago
asciidoc.nanorc Rename syntax definitions 8 years ago
asm.nanorc Rename syntax definitions 8 years ago
awk.nanorc Rename syntax definitions 8 years ago
c.nanorc uncomment whitespace highlighting 8 years ago
clojure.nanorc Update clojure.nanorc 8 years ago
cmake.nanorc Highlight whitespace 8 years ago
coffeescript.nanorc coffeescript regex escapes fixed 8 years ago
colortest.nanorc Rename syntax definitions 8 years ago
conf.nanorc Color trailing whitespace green 7 years ago
conky.nanorc Rename syntax definitions 8 years ago
csh.nanorc Add files via upload 7 years ago
csharp.nanorc Rename syntax definitions 8 years ago
css.nanorc Color trailing whitespace green 7 years ago
csv.nanorc Add rainbow CSV highlighting rules (12 column coverage) 5 years ago
cython.nanorc Color trailing whitespace green 7 years ago
dot.nanorc Rename syntax definitions 8 years ago
dotenv.nanorc add .env file syntax highlight 6 years ago
email.nanorc Rename syntax definitions 8 years ago
erb.nanorc Color trailing whitespace green 7 years ago
etc-hosts.nanorc fix a typo 5 years ago
fish.nanorc Rename syntax definitions 8 years ago
fortran.nanorc Color trailing whitespace green 7 years ago
genie.nanorc Add comments 7 years ago
gentoo.nanorc Rename syntax definitions 8 years ago
git.nanorc For conformity, color trailing whitespace green, not red 7 years ago
gitcommit.nanorc added alias to gitcommit for backwards compatibility in nanorc files 11 years ago
glsl.nanorc Rename syntax definitions 8 years ago
go.nanorc Rename syntax definitions 8 years ago
groff.nanorc Rename syntax definitions 8 years ago
haml.nanorc Color trailing whitespace green 7 years ago
haskell.nanorc Color trailing whitespace green 7 years ago
hcl.nanorc Changed author 6 years ago
html.j2.nanorc Symlink html.j2.nanorc -> html.nanorc for people using extendsyntax on it 5 years ago
html.nanorc Update HTML highlighting ruleset and merge J2 templating rules into it 5 years ago
i3.nanorc Added i3 windows manager config file syntax 7 years ago
ical.nanorc Create ical.nanorc 8 years ago
ini.nanorc Add cfg extension to ini file rules 5 years ago
inputrc.nanorc Rename syntax definitions 8 years ago
install.sh Check for unzip 6 years ago
java.nanorc Added basic number highlighting 8 years ago
javascript.nanorc javascript.nanorc - highlights ending brace too 5 years ago
js.nanorc Fix not balanced parentheses 6 years ago
json.nanorc Rename syntax definitions 8 years ago
keymap.nanorc Rename syntax definitions 8 years ago
kickstart.nanorc Change tab coloring behavior for several rc's 9 years ago
ledger.nanorc Rename syntax definitions 8 years ago
license whoops needed to do add 10 years ago
lisp.nanorc Rename syntax definitions 8 years ago
lua.nanorc Highlight trailing whitespaces 8 years ago
makefile.nanorc makefile: bightmagenta for start of lines beginning with += 8 years ago
man.nanorc Rename syntax definitions 8 years ago
markdown.nanorc Fixing quotes that span more than one line. 6 years ago
mpdconf.nanorc Rename syntax definitions 8 years ago
mutt.nanorc Rename syntax definitions 8 years ago
nanorc add syntax highlighting for /etc/hosts 5 years ago
nanorc.nanorc nanorc.nanorc: add positionlog keyword 6 years ago
nginx.nanorc Added missing proxy_ directives 6 years ago
nmap.nanorc Add files via upload 5 years ago
ocaml.nanorc Color trailing whitespace green 7 years ago
patch.nanorc Rename syntax definitions 8 years ago
peg.nanorc Rename syntax definitions 8 years ago
perl.nanorc Color trailing whitespace green 7 years ago
perl6.nanorc Add pl6 pm6 extensions 5 years ago
php.nanorc fix PHP classes with underscore character 5 years ago
pkg-config.nanorc Rename syntax definitions 8 years ago
pkgbuild.nanorc pkgbuild: Add sha224sums and changelog 5 years ago
po.nanorc Rename syntax definitions 8 years ago
pov.nanorc Rename syntax definitions 8 years ago
privoxy.nanorc Rename syntax definitions 8 years ago
prolog.nanorc Added prolog syntax highlighting 6 years ago
puppet.nanorc Fixed typo (and changed color) for trailing whitespace 7 years ago
python.nanorc Change the Python file header text 5 years ago
reST.nanorc Rename syntax definitions 8 years ago
rpmspec.nanorc Rename syntax definitions 8 years ago
ruby.nanorc Color trailing whitespace green 7 years ago
rust.nanorc Color trailing whitespace green 7 years ago
scala.nanorc Rename syntax definitions 8 years ago
sed.nanorc Rename syntax definitions 8 years ago
sh.nanorc Added "revise" temporary files from composure (github.com/erichs/composure) 7 years ago
shellcheck.sh introduce travis/shellcheck 6 years ago
sls.nanorc Color trailing whitespace green 7 years ago
sql.nanorc Rename syntax definitions 8 years ago
svn.nanorc add syntax highlight for svn commit file 6 years ago
swift.nanorc added Unicode and Integer Literals 8 years ago
systemd.nanorc Rename syntax definitions 8 years ago
tcl.nanorc For conformity, color trailing whitespace green, not blue 7 years ago
tex.nanorc Update tex.nanorc 8 years ago
vala.nanorc Rename syntax definitions 8 years ago
verilog.nanorc Added Verilog 6 years ago
vi.nanorc Rename syntax definitions 8 years ago
xml.nanorc Color trailing whitespace green 7 years ago
xresources.nanorc Rename syntax definitions 8 years ago
yaml.nanorc YAML comments are now grey/brightblue 6 years ago
yum.nanorc Rename syntax definitions 8 years ago
zsh.nanorc Add .zsh-theme ext to zsh.nanorc 6 years ago
zshrc.nanorc Adds missing zshrc symlink 9 years ago

Readme.rst

***************************************
Improved Nano Syntax Highlighting Files
***************************************

This repository holds ``{lang}.nanorc`` files that have improved
definitions of syntax highlighting for various languages.


1. Copy files
~~~~~~

These should be placed inside of the ``~/.nano/`` directory. 
Or for system-wide installation ``/usr/share/nano-syntax-highlighting/``.
In other words::

    git clone git@github.com:scopatz/nanorc.git ~/.nano

*Note - if you have any issues (ssh was not properly configured), alternatively use::

    git clone https://github.com/scopatz/nanorc.git ~/.nano
    
*System wide will look like so*::

    sudo git clone https://github.com/scopatz/nanorc.git /usr/share/nano-syntax-highlighting/

**NOTE**: \< and \> are regular character escapes on macOS. The bug's fixed in Nano, but this might be a problem
if you are using an older version. If this is the case, replace them respectively with [[:<:]] and [[:>:]].
This is reported in `issue 52 <https://github.com/scopatz/nanorc/issues/52>`_

2. Configure ``nano``
~~~~~~~~~

Once there you should add the languages you want to your
nano configuration file ``~/.nanorc``.  For example::

    ## C/C++
    include "~/.nano/c.nanorc"

You can also append the contents of ``~/.nano/nanorc`` into your
``~/.nanorc`` to include all languages::

    cat ~/.nano/nanorc >> ~/.nanorc
    
Or to be less verbose, append content of the folder in one line with wildcard::

    ## For all users
    $ echo "include $install_path/*.nanorc" >> /etc/nanorc 
    ## For current user
    $ echo "include $install_path/*.nanorc" >> ~/.nanorc
    
where ``$install_path`` is ``/usr/share/nano-syntax-highlighting`` or ``~/.nano/`` or ...

1a.  Automatic installer
~~~~~~~~~~~~~~~~~~~~~~
Finally, you can run an automatic installer using the following code::

    $ curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh

or alternatively::

    $ wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh

*Note -
    some syntax definitions which exist in Nano upstream may be preferable to the ones provided by this package.
    The install.sh script may be run with ``-l`` or ``--lite`` to insert the included syntax definitions from this package
    with lower precedence than the ones provided by the standard package.
    
    
1b. Distributive specific installation via package managers
~~~~~~~~~~
On **Arch Linux** and other *pacman/aur* based systems it is possible to::

    $ aurman -S nano-syntax-highlighting-git

or search package::

    $ aurman -Ss nano-syntax-highlight

Then you need to mannually add ``.nanorc``-s to user's ``~/.nanorc`` or system ``/etc/nanorc``. See **$2**

Acknowledgement
~~~~~~~~~~~~~~~
Some of these files are derived from the original nano release [`Project <https://www.nano-editor.org/>`_] [`Repository <https://git.savannah.gnu.org/cgit/nano.git>`_]