nano syntax highlighting

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.