It’s handy to have syntax highlighting in config files (like ~/.bashrc
and Apache virtual host configs).
Nano includes syntax definitions from config files saved in the format /usr/share/nano/*.nanorc
.
To add syntax highlighting for config files, add the following to /usr/share/nano/conf.nanorc
: