mirror of
https://github.com/scopatz/nanorc
synced 2024-11-25 09:55:40 +01:00
bba53c3940
Duplicate syntax definition names may cause problems. Since nano comes with predefined all-lowercase syntax definitions, we use uppercase letters everywhere to reduce the risk of future conflicts
12 lines
281 B
Plaintext
12 lines
281 B
Plaintext
## Here is an example for xml files.
|
|
##
|
|
|
|
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$"
|
|
color white "^.+$"
|
|
color green start="<" end=">"
|
|
color cyan "<[^> ]+"
|
|
color cyan ">"
|
|
color yellow start="<!DOCTYPE" end="[/]?>"
|
|
color yellow start="<!--" end="-->"
|
|
color red "&[^;]*;"
|