Nano Syntax Highlighting (using git on Centos)

Having used linux for years, I’ve run the gamut of command line text editors. VI, VIM, EMACS, Pico and of course Nano. My get down and dirty editor, need to edit it fast editor of the moment is Nano.

Have you ever wished that Nano supported Syntax Highlighting? Well it does. All you need are the files. Thanks to git, creating a local repository of syntax highlighting definitions is pretty straight forward.

Just clone the repository of your choice: git clone git://github.com/serialhex/nano-highlight.git ~/.nano and then edit your .nanorc to include the highlighting definitions that you want.


## CSS
include "~/.nano/css.nanorc"

## HTML
include “~/.nano/html.nanorc”

That’s really it. Pretty easy eh?