From 7599506d3838bd9005629d33f57bf967d0c5d8a0 Mon Sep 17 00:00:00 2001 From: Eric Ma Date: Mon, 28 May 2018 01:29:36 +0800 Subject: [PATCH] added html with jinja templating --- html.j2.nanorc | 17 +++++++++++++++++ nanorc | 1 + 2 files changed, 18 insertions(+) create mode 100644 html.j2.nanorc diff --git a/html.j2.nanorc b/html.j2.nanorc new file mode 100644 index 0000000..ff14a97 --- /dev/null +++ b/html.j2.nanorc @@ -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="" + +## Trailing spaces +color ,green "[[:space:]]+$" + +## Jinja templating +color green "\{{2}.*\}{2}" +color green "\{\%.*\%\}" +color brightcyan "(if|endif|for)" + diff --git a/nanorc b/nanorc index 967dd5b..adf7049 100644 --- a/nanorc +++ b/nanorc @@ -26,6 +26,7 @@ include "~/.nano/groff.nanorc" include "~/.nano/haml.nanorc" include "~/.nano/haskell.nanorc" include "~/.nano/html.nanorc" +include "~/.nano/html.j2.nanorc" include "~/.nano/ical.nanorc" include "~/.nano/ini.nanorc" include "~/.nano/inputrc.nanorc"