This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / html.nanorc
1 ## HTML syntax highlighting rules for Nano
2
3 syntax "HTML" "\.html?(.j2)?$"
4 magic "HTML document"
5 comment "<!--|-->"
6
7 ## Emphasis tags
8 color brightwhite start="<([biu]|em|strong)[^>]*>" end="</([biu]|em|strong)>"
9
10 ## Tags
11 color cyan start="<" end=">"
12
13 ## Attributes
14 color brightblue "[[:space:]](abbr|accept(-charset)?|accesskey|action|[av]?link|alt|archive|axis|background|(bg)?color|border)="
15 color brightblue "[[:space:]](cell(padding|spacing)|char(off|set)?|checked|cite|class(id)?|compact|code(base|tag)?|cols(pan)?)="
16 color brightblue "[[:space:]](content(editable)?|contextmenu|coords|data|datetime|declare|defer|dir|enctype)="
17 color brightblue "[[:space:]](for|frame(border)?|headers|height|hidden|href(lang)?|hspace|http-equiv|id|ismap)="
18 color brightblue "[[:space:]](label|lang|longdesc|margin(height|width)|maxlength|media|method|multiple)="
19 color brightblue "[[:space:]](name|nohref|noresize|noshade|object|on(click|focus|load|mouseover|keypress)|profile|readonly|rel|rev)="
20 color brightblue "[[:space:]](rows(pan)?|rules|scheme|scope|scrolling|shape|size|span|src|standby|start|style|summary|pattern)="
21 color brightblue "[[:space:]](tabindex|target|text|title|type|usemap|v?align|value(type)?|vspace|width|xmlns|xml:space)="
22 color brightblue "[[:space:]](required|disabled|selected)[[:space:]=>]"
23
24 ## Strings
25 color yellow ""(\\.|[^"])*""
26
27 ## Named character references and entities
28 color red "&#?[[:alnum:]]*;"
29
30 ## Template strings (not in the HTML spec, but very commonly used)
31 color magenta "\{[^\}]*\}"
32 color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]"
33
34 ## Comments
35 color green start="<!--" end="-->"
36
37 ## Trailing spaces
38 color ,green "[[:space:]]+$"
39
40 ## Reminders
41 color brightwhite,yellow "(FIXME|TODO|XXX)"