From 6b9770b236dc81db3690f60419540b4a19e3d20b Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 19 Mar 2021 12:28:49 -0400 Subject: [PATCH] * XML: Enhance with different opening/closing tag colors --- xml.nanorc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 "&[^;]*;"