2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting for XML files.
|
2014-05-14 11:16:40 +00:00
|
|
|
|
2018-02-07 10:25:46 +00:00
|
|
|
syntax xml "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
|
2017-05-07 17:49:58 +00:00
|
|
|
header "<\?xml.*version=.*\?>"
|
2017-11-19 10:10:53 +00:00
|
|
|
magic "(XML|SGML) (sub)?document"
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "<!--|-->"
|
2014-05-14 11:16:40 +00:00
|
|
|
|
2015-06-28 18:15:41 +00:00
|
|
|
# The entire content of the tag:
|
2008-05-31 21:55:21 +00:00
|
|
|
color green start="<" end=">"
|
2015-06-28 18:15:41 +00:00
|
|
|
|
|
|
|
# The start and the end of the tag:
|
|
|
|
color cyan "<[^> ]+" ">"
|
|
|
|
|
|
|
|
# The strings inside the tag:
|
2020-07-27 08:47:27 +00:00
|
|
|
color magenta ""[^"]*""
|
2015-06-28 18:15:41 +00:00
|
|
|
|
|
|
|
# Comments:
|
2008-05-31 21:55:21 +00:00
|
|
|
color yellow start="<!DOCTYPE" end="[/]?>"
|
|
|
|
color yellow start="<!--" end="-->"
|
2015-06-28 18:15:41 +00:00
|
|
|
|
|
|
|
# Escapes:
|
2008-05-31 21:55:21 +00:00
|
|
|
color red "&[^;]*;"
|