Syntax Highlighting with nano – nanorc for etcxml

##############################################################################
#
# Syntax highlighting for XML files (/etc/fonts/*)
#
# Author:  Josef 'Jupp' Schugt, jupp(a)rubyforge.org
# License: GPL 2  or later
#
# Version: 2004-02-25
#
##############################################################################
 
syntax "etcxml" "/etc/fonts/(\.|/|)" "/etc/xdg/(\.|/|)"
color white "^.+$"
color green  start="<" end=">"
color cyan   "<[^> ]+"
color cyan   ">"
color yellow start="<!DOCTYPE" end="[/]?>"
color yellow start="<!--" end="-->"
color red    "&[^;]*;"
 
syntax "etcxml2" "gentoorc$"
color white "^.+$"
color green  start="<" end=">"
color cyan   "<[^> ]+"
color cyan   ">"
color yellow start="<!DOCTYPE" end="[/]?>"
color yellow start="<!--" end="-->"
color red    "&[^;]*;"

Leave a Reply

Your email address will not be published.