mirror of
https://github.com/scopatz/nanorc
synced 2024-12-26 15:14:51 +01:00
19 lines
432 B
Plaintext
19 lines
432 B
Plaintext
## Here is an example for xml files.
|
|
##
|
|
|
|
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$"
|
|
header "<\?xml.*version=.*\?>"
|
|
magic "(XML|SGML) (sub)?document"
|
|
comment "<!--|-->"
|
|
|
|
color white "^.+$"
|
|
color green start="<" end=">"
|
|
color cyan "<[^> ]+"
|
|
color cyan ">"
|
|
color yellow start="<!DOCTYPE" end="[/]?>"
|
|
color yellow start="<!--" end="-->"
|
|
color red "&[^;]*;"
|
|
|
|
## Trailing spaces
|
|
color ,green "[[:space:]]+$"
|