Handy syntax highlighting for nano
Posted: 17. Nov 2016, 06:00
I came across this git a little while ago and thought it might appeal to others as well. I haven't checked out all the formats yet so I don't know if they all work as advertised or if they follow any accepted style guidelines. But the few I have checked certainly make it easier for me to parse nano at a glance.
The install instructions per the thread where I found the git;
*EDIT*
Forgot to add the bit about including the new rcs into the nanorc. This is all in the README, but it still seems proper to include it here.So you can add as few or as many as you need. I just added ALL.nanorc to get everything. At least, I hope that's what that means.
The install instructions per the thread where I found the git;
Code: Select all
git clone https://github.com/nanorc/nanorc.git
cd nanorc
make install
Forgot to add the bit about including the new rcs into the nanorc. This is all in the README, but it still seems proper to include it here.
Add these lines to the ~/.nanorc
Code: Select all
include ~/.nano/syntax/html.nanorc
include ~/.nano/syntax/css.nanorc
include ~/.nano/syntax/php.nanorc
include ~/.nano/syntax/ALL.nanorc