› syntax highlighting for *.ini files in nano 
Tue, 04/10/2007 - 17:01
Use the snippet below in your ~/.nanorc or /etc/nanorc file to highlight *.ini files like php.ini in Nano.
# ini highlighting syntax "ini" "\.ini(\.old|~)?$" # values color brightred "=.*$" # equal sign color green "=" # numbers color brightblue "-?[0-9\.]+\s*($|;)" # ON/OFF color brightmagenta "ON|OFF|On|Off|on|off\s*($|;)" # sections color brightcyan "^\s*\[.*\]" # keys color cyan "^\s*[a-zA-Z0-9_\.]+" # comments color brightyellow ";.*$"
Comments
Thanks, handy. Sun, 02/27/2011 - 04:09 — Brian (not verified)
Thanks, handy.
Post new comment