diff --git a/xml.nanorc b/xml.nanorc index 809a048..6d4e8f0 100644 --- a/xml.nanorc +++ b/xml.nanorc @@ -7,9 +7,16 @@ magic "(XML|SGML) (sub)?document" comment "" color white "^.+$" +# Attributes color green start="<" end=">" -color cyan "<[^> ]+" -color cyan ">" +color brightgreen "=\"[^\"]*\"" +# Opening tags +color brightcyan "<[^/][^> ]*" +color brightcyan ">" +# Closing tags +color cyan " ]*>" +# Self-closing part +color cyan "/>" color yellow start="" color yellow start="" color red "&[^;]*;"