html.nanorc (1286B)
1 ## Syntax highlighting for HTML. 2 3 syntax html "\.html?$" 4 magic "HTML document" 5 comment "<!--|-->" 6 7 formatter tidy -m -q 8 9 # Tags: 10 color cyan "<[[:alpha:]/!?][^>]*>" 11 # Bold, italic, underlined, emphasis, and importance: 12 color brightmagenta "</?(b|i|u|em|strong)>" 13 14 # Named character references: 15 color red "&[^;[:space:]]*;" 16 17 # Attributes: 18 color red "\<(abbr|accept(-charset)?|accesskey|action|alink|align|alt|archive|axis|background|bgcolor|border)=" 19 color red "\<(cell(padding|spacing)|char(off|set)?|checked|cite|class(id)?|compact|code(base|tag)?|cols(pan)?)=" 20 color red "\<(content(editable)?|contextmenu|coords|data|datetime|declare|defer|dir|disabled|enctype)=" 21 color red "\<(for|frame(border)?|headers|height|hidden|href(lang)?|hspace|http-equiv|id|ismap)=" 22 color red "\<(label|lang|link|longdesc|margin(height|width)|maxlength|media|method|multiple)=" 23 color red "\<(name|nohref|noresize|noshade|object|onclick|onfocus|onload|onmouseover|profile|readonly|rel|rev)=" 24 color red "\<(rows(pan)?|rules|scheme|scope|scrolling|selected|shape|size|span|src|standby|start|style|summary)=" 25 color red "\<(tabindex|target|text|title|type|usemap|valign|value(type)?|vlink|vspace|width|xmlns|xml:space)=" 26 27 # Strings: 28 color green ""([^"\]|\\.)*"" 29 30 # Comments: 31 color yellow start="<!--" end="-->"