Adding Syntax Highlighting To Nano

  • Post by Mike Dixson
  • Jun 25, 2020
post-thumb

Run the following shell command to add all installed syntax files to your .nanorc file.

ls -d /usr/share/nano/*.nanorc | awk '{print "include "$1}' >> ~/.nanorc

There is also a greatly expanded syntax library here
https://github.com/scopatz/nanorc