Skip to content

Instantly share code, notes, and snippets.

@mark-kubacki
Last active August 29, 2015 13:57
Show Gist options
  • Save mark-kubacki/9683540 to your computer and use it in GitHub Desktop.
Save mark-kubacki/9683540 to your computer and use it in GitHub Desktop.
## Syntax highlighting of HTML with mixed-ins, for the editor Nano.
##
syntax "html" "\.(html|mak)$"
magic "HTML document text"
color brightblue start="<" end=">"
color red "&[^;[[:space:]]]*;"
# AngularJS and similar
color brightwhite start="\{\{" end="\}\}"
color green "ng-[^>\"\ \=]*"
color green start="ng-[^>\"\ \=]*\=\"" end="\""
# alternate syntax for server-side templates
color brightred start="\{\{%" end="%\}\}"
# Mako
color yellow start="\$\{" end="\}"
color yellow start="<%" end="[%\/]>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment