Improved Nano Syntax Highlighting Files
Shell
Latest commit 59441c7 Feb 28, 2017 @scopatz committed on GitHub Merge pull request #140 from Paduct/master
Add comments
Permalink
Failed to load latest commit information.
Dockerfile.nanorc Initial commit Feb 8, 2016
Readme.rst Add -l|--lite option to install which includes new syntax files with … Feb 21, 2017
apacheconf.nanorc Color trailing whitespace green Dec 6, 2016
arduino.nanorc Rename syntax definitions Mar 2, 2016
asciidoc.nanorc Rename syntax definitions Mar 2, 2016
asm.nanorc Rename syntax definitions Mar 2, 2016
awk.nanorc Rename syntax definitions Mar 2, 2016
c.nanorc uncomment whitespace highlighting Jun 10, 2016
clojure.nanorc Update clojure.nanorc Aug 30, 2016
cmake.nanorc Highlight whitespace Jun 12, 2016
coffeescript.nanorc coffeescript regex escapes fixed Jul 17, 2016
colortest.nanorc Rename syntax definitions Mar 2, 2016
conf.nanorc Color trailing whitespace green Dec 6, 2016
conky.nanorc Rename syntax definitions Mar 2, 2016
csharp.nanorc Rename syntax definitions Mar 2, 2016
css.nanorc Color trailing whitespace green Dec 6, 2016
cython.nanorc Color trailing whitespace green Dec 6, 2016
dot.nanorc Rename syntax definitions Mar 2, 2016
email.nanorc Rename syntax definitions Mar 2, 2016
erb.nanorc Color trailing whitespace green Dec 6, 2016
fish.nanorc Rename syntax definitions Mar 2, 2016
fortran.nanorc Color trailing whitespace green Dec 6, 2016
genie.nanorc Add comments Feb 28, 2017
gentoo.nanorc Rename syntax definitions Mar 2, 2016
git.nanorc For conformity, color trailing whitespace green, not red Dec 6, 2016
gitcommit.nanorc Initial commit Feb 8, 2016
glsl.nanorc Rename syntax definitions Mar 2, 2016
go.nanorc Rename syntax definitions Mar 2, 2016
groff.nanorc Rename syntax definitions Mar 2, 2016
haml.nanorc Color trailing whitespace green Dec 6, 2016
haskell.nanorc Color trailing whitespace green Dec 6, 2016
html.nanorc Color trailing whitespace green Dec 6, 2016
i3.nanorc Added i3 windows manager config file syntax Jan 23, 2017
ical.nanorc Create ical.nanorc Sep 30, 2016
ini.nanorc Rename syntax definitions Mar 2, 2016
inputrc.nanorc Rename syntax definitions Mar 2, 2016
install.sh Add -l|--lite option to install which includes new syntax files with … Feb 21, 2017
java.nanorc Added basic number highlighting Aug 30, 2016
javascript.nanorc Initial commit Feb 8, 2016
js.nanorc Color trailing whitespace green Dec 6, 2016
json.nanorc Rename syntax definitions Mar 2, 2016
keymap.nanorc Rename syntax definitions Mar 2, 2016
kickstart.nanorc Initial commit Feb 8, 2016
ledger.nanorc Rename syntax definitions Mar 2, 2016
license Initial commit Feb 8, 2016
lisp.nanorc Rename syntax definitions Mar 2, 2016
lua.nanorc Highlight trailing whitespaces Apr 30, 2016
makefile.nanorc makefile: bightmagenta for start of lines beginning with += Oct 11, 2016
man.nanorc Rename syntax definitions Mar 2, 2016
markdown.nanorc Color trailing whitespace green Dec 6, 2016
mpdconf.nanorc Rename syntax definitions Mar 2, 2016
mutt.nanorc Rename syntax definitions Mar 2, 2016
nanorc Merge pull request #93 from evanowen/patch-1 Oct 13, 2016
nanorc.nanorc Rename syntax definitions Mar 2, 2016
nginx.nanorc Rename syntax definitions Mar 2, 2016
ocaml.nanorc Color trailing whitespace green Dec 6, 2016
patch.nanorc Rename syntax definitions Mar 2, 2016
peg.nanorc Rename syntax definitions Mar 2, 2016
perl.nanorc Color trailing whitespace green Dec 6, 2016
perl6.nanorc Color trailing whitespace green Dec 6, 2016
php.nanorc Remove bad escape Mar 2, 2016
pkg-config.nanorc Rename syntax definitions Mar 2, 2016
pkgbuild.nanorc Add epoch to pkgbuild keywords Jan 27, 2017
po.nanorc Rename syntax definitions Mar 2, 2016
pov.nanorc Rename syntax definitions Mar 2, 2016
privoxy.nanorc Rename syntax definitions Mar 2, 2016
puppet.nanorc Fixed typo (and changed color) for trailing whitespace Dec 6, 2016
python.nanorc Color trailing whitespace green Dec 6, 2016
reST.nanorc Rename syntax definitions Mar 2, 2016
rpmspec.nanorc Rename syntax definitions Mar 2, 2016
ruby.nanorc Color trailing whitespace green Dec 6, 2016
rust.nanorc Color trailing whitespace green Dec 6, 2016
scala.nanorc Rename syntax definitions Mar 2, 2016
sed.nanorc Rename syntax definitions Mar 2, 2016
sh.nanorc Added "revise" temporary files from composure (github.com/erichs/comp… Jan 3, 2017
sls.nanorc Color trailing whitespace green Dec 6, 2016
sql.nanorc Rename syntax definitions Mar 2, 2016
swift.nanorc added Unicode and Integer Literals May 5, 2016
systemd.nanorc Rename syntax definitions Mar 2, 2016
tcl.nanorc For conformity, color trailing whitespace green, not blue Dec 6, 2016
tex.nanorc Update tex.nanorc Aug 29, 2016
vala.nanorc Rename syntax definitions Mar 2, 2016
vi.nanorc Rename syntax definitions Mar 2, 2016
xml.nanorc Color trailing whitespace green Dec 6, 2016
xresources.nanorc Rename syntax definitions Mar 2, 2016
yaml.nanorc Rename syntax definitions Mar 2, 2016
yum.nanorc Rename syntax definitions Mar 2, 2016
zsh.nanorc add more commands to zsh Dec 14, 2016
zshrc.nanorc Initial commit Feb 8, 2016

Readme.rst

Improved Nano Syntax Highlighting Files

This repository holds {lang}.nanorc files that have improved definitions of syntax highlighting for various languages. These should be placed inside of the ~/.nano/ directory. Alternatively:

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

*Note - if you have any issues, alternatively use:

git clone https://github.com/scopatz/nanorc.git ~/.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

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.