Cygwin nano syntax highlighting

1

I want to have basic syntax highlighting in a cygwin implementation of nano.

This comment confirms for me that it's possible, but I can't find any information on how to actually make it happen.

OneHoopyFrood

Posted 2014-09-25T17:38:09.350

Reputation: 168

Answers

3

Cygwin will include many *.nanorc files in /usr/share/nano/. Some of these still have broken regex’s but to add them, you’ll need to create a .nanorc file in your home directory, and add something like the following to it:

include /usr/share/nano/python.nanorc
include /usr/share/nano/sh.nanorc

Add an include for all desired syntax highlighters. That’s it, restart your terminal.

Gedwin

Posted 2014-09-25T17:38:09.350

Reputation: 46