mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 16:45:40 +01:00
* XML: Enhance with different opening/closing tag colors
This commit is contained in:
parent
723fffd7ee
commit
6b9770b236
11
xml.nanorc
11
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="<!DOCTYPE" end="[/]?>"
|
||||
color yellow start="<!--" end="-->"
|
||||
color red "&[^;]*;"
|
||||
|
Loading…
Reference in New Issue
Block a user