Mercurial > repos > other > linux
changeset 95:e7a2fbd79035
Add XML support
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 02 Apr 2018 19:36:29 +0100 |
parents | ac4d97a07527 |
children | 67d3ac391320 |
files | nanorc nanorc.d/xml.nanorc |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/nanorc Mon Apr 02 19:27:06 2018 +0100 +++ b/nanorc Mon Apr 02 19:36:29 2018 +0100 @@ -28,3 +28,6 @@ ## Bourne shell scripts include "~/.nanorc.d/sh.nanorc" + +## XML +include "~/.nanorc.d/xml.nanorc" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nanorc.d/xml.nanorc Mon Apr 02 19:36:29 2018 +0100 @@ -0,0 +1,8 @@ +syntax "xml" "\.(xml|svg)$" +comment "<!--|-->" + +color brightblue start="<[a-zA-Z/]" end=">" +color red "&[^;[[:space:]]]*;" +color yellow "[a-zA-Z_-]+=["']?[^"']+["']" +color green start="<!--" end="-->" +color magenta start="<!\[CDATA\[" end="\]\]>"