1
0
mirror of https://github.com/scopatz/nanorc synced 2024-09-20 21:46:01 +02:00
nanorc/xml.nanorc

19 lines
432 B
Plaintext
Raw Normal View History

2010-07-29 00:15:43 +02:00
## Here is an example for xml files.
##
2019-12-19 04:08:43 +01:00
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$"
header "<\?xml.*version=.*\?>"
magic "(XML|SGML) (sub)?document"
comment "<!--|-->"
2010-07-29 00:15:43 +02:00
color white "^.+$"
color green start="<" end=">"
color cyan "<[^> ]+"
color cyan ">"
color yellow start="<!DOCTYPE" end="[/]?>"
color yellow start="<!--" end="-->"
color red "&[^;]*;"
2016-12-06 22:19:02 +01:00
## Trailing spaces
color ,green "[[:space:]]+$"