mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +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 "<!--|-->"
|
comment "<!--|-->"
|
||||||
|
|
||||||
color white "^.+$"
|
color white "^.+$"
|
||||||
|
# Attributes
|
||||||
color green start="<" end=">"
|
color green start="<" end=">"
|
||||||
color cyan "<[^> ]+"
|
color brightgreen "=\"[^\"]*\""
|
||||||
color cyan ">"
|
# Opening tags
|
||||||
|
color brightcyan "<[^/][^> ]*"
|
||||||
|
color brightcyan ">"
|
||||||
|
# Closing tags
|
||||||
|
color cyan "</[^> ]*>"
|
||||||
|
# Self-closing part
|
||||||
|
color cyan "/>"
|
||||||
color yellow start="<!DOCTYPE" end="[/]?>"
|
color yellow start="<!DOCTYPE" end="[/]?>"
|
||||||
color yellow start="<!--" end="-->"
|
color yellow start="<!--" end="-->"
|
||||||
color red "&[^;]*;"
|
color red "&[^;]*;"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user