I'm trying to set my color syntax highlighting in nano, but it doesn't work as expected.
One system everything works. This is an Fedora 21 laptop.
Two systems everything I've tried except
man somethingworks. This is an Fedora 21 desktop and an Fedora 21 vm in VirtualBox.One system only one file I've tried works(opening nanorc itself gives highlighting). This is an Debian Wheezy desktop.
If I do man emacs it only works as expected on one system. I also have syntax highlighting for many other types of files, I thought the only thing I needed to set this up was to have .nanorc located in the users home directory so nano could find it. This is very confusing.
I've tried to look for differences in bash_profile, /etc/profile, bashrc but nothing stands out and maybe that's irrelevant. I've looked at the permissions. I've started an new terminal and restarted the system.
Here is a piece from my .nanorc file:
#####################################################################
## Manpages
##include "/usr/share/nano/man.nanorc"
## Here is an example for manpages.
##
syntax "man" "\.[1-9]x?$"
color green "\.(S|T)H.*$"
color brightgreen "\.(S|T)H" "\.TP"
color brightred "\.(BR?|I[PR]?).*$"
color brightblue "\.(BR?|I[PR]?|PP)"
color brightwhite "\\f[BIPR]"
color yellow "\.(br|DS|RS|RE|PD)"
#####################################################################
Questions:
Why is the same .nanorc file not working the same on four Linux systems(Fedora 21 is working, two Fedora 21 not working and Debian Wheezy not working at all). What am I missing?
What are the steps to set a custom .nanorc file to be used by nano and be sure it's not in some kind of conflict or something?
--------------------------------------------
Here is the full nanorc file on pastebin.com.
--syntax=. I noticed that nano is compiled with--enable-colorsso that's not the issue.