annotate nanorc.d/xml.nanorc @ 104:f2d500466492

Add initial CSS syntax highlighting
author IBBoard <dev@ibboard.co.uk>
date Tue, 03 Apr 2018 12:53:35 +0100
parents 767746af2cfe
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
95
e7a2fbd79035 Add XML support
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 syntax "xml" "\.(xml|svg)$"
e7a2fbd79035 Add XML support
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 comment "<!--|-->"
e7a2fbd79035 Add XML support
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3
e7a2fbd79035 Add XML support
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 color brightblue start="<[a-zA-Z/]" end=">"
e7a2fbd79035 Add XML support
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 color red "&[^;[[:space:]]]*;"
103
767746af2cfe Fix string colouring for XML
IBBoard <dev@ibboard.co.uk>
parents: 96
diff changeset
6 color yellow ""[^"]*"" "'[^']*'"
95
e7a2fbd79035 Add XML support
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 color green start="<!--" end="-->"
e7a2fbd79035 Add XML support
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 color magenta start="<!\[CDATA\[" end="\]\]>"