mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-29 16:13:27 +03:00
23 lines
529 B
Plaintext
23 lines
529 B
Plaintext
## Syntax highlighting for XML files.
|
|
|
|
syntax xml "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
|
|
header "<\?xml.*version=.*\?>"
|
|
magic "(XML|SGML) (sub)?document"
|
|
comment "<!--|-->"
|
|
|
|
# The entire content of the tag:
|
|
color green start="<" end=">"
|
|
|
|
# The angled brackets and the name of the tag:
|
|
color cyan "<[^> ]+|>"
|
|
|
|
# The strings inside the tag:
|
|
color magenta ""[^"]*""
|
|
|
|
# Comments:
|
|
color yellow start="<!DOCTYPE" end="[/]?>"
|
|
color yellow start="<!--" end="-->"
|
|
|
|
# Escapes:
|
|
color red "&[^;]*;"
|