|
Packit Service |
c30d13 |
## Here is an example for XML files.
|
|
Packit Service |
c30d13 |
|
|
Packit Service |
c30d13 |
syntax xml "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
|
|
Packit Service |
c30d13 |
header "<\?xml.*version=.*\?>"
|
|
Packit Service |
c30d13 |
magic "(XML|SGML) (sub)?document"
|
|
Packit Service |
c30d13 |
comment ""
|
|
Packit Service |
c30d13 |
|
|
Packit Service |
c30d13 |
# The entire content of the tag:
|
|
Packit Service |
c30d13 |
color green start="<" end=">"
|
|
Packit Service |
c30d13 |
|
|
Packit Service |
c30d13 |
# The start and the end of the tag:
|
|
Packit Service |
c30d13 |
color cyan "<[^> ]+" ">"
|
|
Packit Service |
c30d13 |
|
|
Packit Service |
c30d13 |
# The strings inside the tag:
|
|
Packit Service |
c30d13 |
color magenta "\"[^"]*\""
|
|
Packit Service |
c30d13 |
|
|
Packit Service |
c30d13 |
# Comments:
|
|
Packit Service |
c30d13 |
color yellow start=""
|
|
Packit Service |
c30d13 |
color yellow start=""
|
|
Packit Service |
c30d13 |
|
|
Packit Service |
c30d13 |
# Escapes:
|
|
Packit Service |
c30d13 |
color red "&[;;]*;"
|