mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 21:01:24 +03:00
b0ef2e2803
They are not documentation, they are functional elements of nano.
22 lines
503 B
Plaintext
22 lines
503 B
Plaintext
## Here is an example for XML files.
|
|
|
|
syntax "xml" "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
|
|
magic "(XML|SGML) (sub)?document text"
|
|
comment "<!--|-->"
|
|
|
|
# The entire content of the tag:
|
|
color green start="<" end=">"
|
|
|
|
# The start and the end of the tag:
|
|
color cyan "<[^> ]+" ">"
|
|
|
|
# The strings inside the tag:
|
|
color magenta "\"[^"]*\""
|
|
|
|
# Comments:
|
|
color yellow start="<!DOCTYPE" end="[/]?>"
|
|
color yellow start="<!--" end="-->"
|
|
|
|
# Escapes:
|
|
color red "&[^;]*;"
|