Created
July 2, 2013 21:29
-
-
Save mintsoft/5913333 to your computer and use it in GitHub Desktop.
Nano XML Highlighting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax "ml" ".*\.(xml|xul|rdf|rss|xbl|sgml?)$" | |
| color white "^.+$" | |
| # Attribute names | |
| color brightblue start="<" end=">" | |
| # Attribute text | |
| color brightgreen ""[^"]+"" | |
| # Tag names | |
| color brightcyan "<[^> ]+" | |
| # Alligators | |
| color cyan "<" | |
| color cyan ">" | |
| # DTDs | |
| color brightyellow start="<!DOCTYPE" end="[/]?>" | |
| # Comments | |
| color green start="<!--" end="-->" | |
| # Entities | |
| color red "&[^;]*;" | |
| # Preprocessing instructions | |
| color brightred "<\?.+?>" | |
| color red "<\?" | |
| color red "\?>" | |
| # CDATA | |
| color white start="<!\[CDATA\[" end="\]\]>" | |
| color brightwhite "<!\[CDATA\[" | |
| color brightwhite "\]\]>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment