2014-02-23 16:07:44 +00:00
|
|
|
## Here is an example for XML files.
|
2014-05-14 11:16:40 +00:00
|
|
|
|
2015-06-28 18:15:41 +00:00
|
|
|
syntax "xml" "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
|
2014-05-14 11:16:40 +00:00
|
|
|
magic "(XML|SGML) (sub)?document text"
|
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 "&[^;]*;"
|