nano syntax highlighting

August 29, 2013

nano syntax highlighting

This article describes how to get syntax highlighting in the command line emacs editor “nano

Ubuntu

zcat /usr/share/doc/nano/examples/nanorc.sample.gz > ~/.nanorc
sed -i 's|# include|include|g' ~/.nanorc

Centos/Redhat

cp /usr/share/doc/nano-2.0.9/nanorc.sample ~/.nanorc
sed -i 's|# include|include|g' ~/.nanorc