nanorc/html.j2.nanorc

18 lines
524 B
Plaintext
Raw Normal View History

2018-05-27 19:29:36 +02:00
## Here is a short improved example for HTML.
##
syntax "HTML" "\.htm[l]?.j2$"
2018-08-09 10:09:19 +02:00
color blue start="<" end=">"
2018-05-27 19:29:36 +02:00
color red "&[^;[[:space:]]]*;"
color yellow ""[^"]*"|qq\|.*\|"
color red "(action|alt|bgcolor|height|href|id|label|longdesc|method|name|onclick|onfocus|onload|onmouseover|rel|size|span|src|style|target|title|type|value|width)="
color magenta start="<!--" end="-->"
## Trailing spaces
color ,green "[[:space:]]+$"
## Jinja templating
color green "\{{2}.*\}{2}"
color green "\{\%.*\%\}"
2018-08-09 10:09:19 +02:00
color cyan "(if|endif|for)"
2018-05-27 19:29:36 +02:00