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
Ondrej Esler 5516da7e24 add syntax highlight for svn commit file 6 years ago
.travis.yml introduce travis/shellcheck 6 years ago
Dockerfile.nanorc Added dockerfile syntax highlighting for *.dockerfile 9 years ago
Readme.rst Update README. Better install manual. 7 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
cython.nanorc Color trailing whitespace green 7 years ago
dot.nanorc Rename syntax definitions 8 years ago
email.nanorc Rename syntax definitions 8 years ago
erb.nanorc Color trailing whitespace green 7 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
html.nanorc Color trailing whitespace green 7 years ago
i3.nanorc Added i3 windows manager config file syntax 7 years ago
ical.nanorc Create ical.nanorc 8 years ago
ini.nanorc highlight standard comments 7 years ago
inputrc.nanorc Rename syntax definitions 8 years ago
install.sh fix what shellcheck will find 6 years ago
java.nanorc Added basic number highlighting 8 years ago
javascript.nanorc Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files. 7 years ago
js.nanorc Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files. 7 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 highlight for svn commit file 6 years ago
nanorc.nanorc Rename syntax definitions 8 years ago
nginx.nanorc Rename syntax definitions 8 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 Color trailing whitespace green 7 years ago
php.nanorc Remove bad escape 8 years ago
pkg-config.nanorc Rename syntax definitions 8 years ago
pkgbuild.nanorc Add validpgpkeys to pkgbuild keywords 7 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
puppet.nanorc Fixed typo (and changed color) for trailing whitespace 7 years ago
python.nanorc Color trailing whitespace green 7 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
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 Rename syntax definitions 8 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/


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::

    $ yaourt nano-syntax-highlight

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