2014-02-23 16:07:44 +00:00
|
|
|
## Here is an example 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:
|
|
|
|
color magenta "\"[^"]*\""
|
|
|
|
|
|
|
|
# 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 "&[^;]*;"
|