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