I am running Debian and I would like to turn on syntax highlighting for
nano. My system has predefined syntax definitions...
standage@idebian:~$ ls /usr/share/nano/ asm.nanorc c.nanorc fortran.nanorc html.nanorc man.nanorc nanorc.nanorc patch.nanorc pov.nanorc sh.nanorc xml.nanorc awk.nanorc css.nanorc gentoo.nanorc java.nanorc mutt.nanorc objc.nanorc perl.nanorc python.nanorc tcl.nanorc cmake.nanorc debian.nanorc groff.nanorc makefile.nanorc nano-menu.xpm ocaml.nanorc php.nanorc ruby.nanorc tex.nanorc
...and I have included all of these in my
standage@idebian:~$ head /home/standage/.nanorc include "/usr/share/nano/asm.nanorc" include "/usr/share/nano/awk.nanorc" include "/usr/share/nano/cmake.nanorc" include "/usr/share/nano/c.nanorc" include "/usr/share/nano/css.nanorc" include "/usr/share/nano/debian.nanorc" include "/usr/share/nano/fortran.nanorc" include "/usr/share/nano/gentoo.nanorc" include "/usr/share/nano/groff.nanorc" include "/usr/share/nano/html.nanorc"
However, I get no syntax highlighting when I open code files with typical file extensions (.c, .h, etc). What's odd is that when I opened the
.nanorc file to check it, the syntax highlighting was activated.
Am I doing something wrong?