mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 08:35:39 +01:00
Merge pull request #175 from ericmjl/html.j2
added html with jinja templating
This commit is contained in:
commit
4af9726092
17
html.j2.nanorc
Normal file
17
html.j2.nanorc
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
## Here is a short improved example for HTML.
|
||||||
|
##
|
||||||
|
syntax "HTML" "\.htm[l]?.j2$"
|
||||||
|
color brightblue start="<" end=">"
|
||||||
|
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 "\{\%.*\%\}"
|
||||||
|
color brightcyan "(if|endif|for)"
|
||||||
|
|
1
nanorc
1
nanorc
@ -26,6 +26,7 @@ include "~/.nano/groff.nanorc"
|
|||||||
include "~/.nano/haml.nanorc"
|
include "~/.nano/haml.nanorc"
|
||||||
include "~/.nano/haskell.nanorc"
|
include "~/.nano/haskell.nanorc"
|
||||||
include "~/.nano/html.nanorc"
|
include "~/.nano/html.nanorc"
|
||||||
|
include "~/.nano/html.j2.nanorc"
|
||||||
include "~/.nano/ical.nanorc"
|
include "~/.nano/ical.nanorc"
|
||||||
include "~/.nano/ini.nanorc"
|
include "~/.nano/ini.nanorc"
|
||||||
include "~/.nano/inputrc.nanorc"
|
include "~/.nano/inputrc.nanorc"
|
||||||
|
Loading…
Reference in New Issue
Block a user