I’m gonna lose all 1337 h4x0r rep my admitting that my fav editor is Nano. This is a remnant of using Pine as my preferred email program in college (and even today when I can only get in via SSH), which by default uses Pico as its editor. Nano is a Pico clone that has a “free as in freedom” license in the GPL, and adds some enhancements like regex searching and syntax coloring.
Yesterday I decided to delve back into developing syntax coloring stuff for Nano on our servers, and came up with a pretty decent setup for Apache conf files. It includes special coloring for the runtime config directives.
To use this, make a text file in your home directory called
.nanorc and paste the contents of this file into it: