mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
* XML: Enhance with different opening/closing tag colors
This commit is contained in:
parent
723fffd7ee
commit
6b9770b236
1 changed files with 9 additions and 2 deletions
11
xml.nanorc
11
xml.nanorc
|
|
@ -7,9 +7,16 @@ magic "(XML|SGML) (sub)?document"
|
|||
comment "<!--|-->"
|
||||
|
||||
color white "^.+$"
|
||||
# Attributes
|
||||
color green start="<" end=">"
|
||||
color cyan "<[^> ]+"
|
||||
color cyan ">"
|
||||
color brightgreen "=\"[^\"]*\""
|
||||
# Opening tags
|
||||
color brightcyan "<[^/][^> ]*"
|
||||
color brightcyan ">"
|
||||
# Closing tags
|
||||
color cyan "</[^> ]*>"
|
||||
# Self-closing part
|
||||
color cyan "/>"
|
||||
color yellow start="<!DOCTYPE" end="[/]?>"
|
||||
color yellow start="<!--" end="-->"
|
||||
color red "&[^;]*;"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue