Damson/assets/syntax/html.xml
astar76 11c1a7808b Build the syntax definitions into the app
Highlighting relied on the syntax-highlighting package, so removing it
left every file uncoloured. The 462 definitions now live in assets/syntax
and are compressed into the binary at build time, unpacked per language
when used. User .xml files still add to or replace them, and the licence
each file declares is recorded in assets/syntax/LICENSES.md.

Also moves files to the trash without needing gio.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 20:35:27 -06:00

1 line
No EOL
19 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="HTML" version="20" kateversion="5.79" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm;*.aspx" mimetype="text/html" author="Wilbert Berendsen ([email protected])" license="LGPL" priority="10"><highlighting><contexts><context name="Start" attribute="Normal Text"><IncludeRules context="FindText"/><IncludeRules context="FindHTML"/></context><context name="El Close" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="#pop"/><DetectSpaces attribute="Other Text"/></context><context name="El Open" attribute="Error"><StringDetect String="/>" attribute="Element Symbols" context="#pop"/><DetectChar char=">" attribute="Element Symbols" context="#pop"/><IncludeRules context="FindAttributes"/></context><context name="MustacheJS" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="MustacheJS content"/><IncludeRules context="DefaultJS"/></context><context name="FindEntity" attribute="Other Text"><RegExpr String="&amp;(?:#[0-9]+|#[xX][0-9A-Fa-f]+|[A-Za-z][A-Za-z0-9]{1,30});|&amp;([AaEeIiOoUuYy]?acute|[AaEeIiOoUu]circ|[AaEeIiOoUu]grave|AElig|aelig|AMP|amp|[Aa]ring|brvbar|[Cc]?cedil|cent|COPY|copy|curren|deg|divide|ETH|eth|frac1[24]|frac34|GT|gt|iexcl|iquest|laquo|LT|lt|macr|micro|middot|nbsp|not|[AaNnOo]tilde|ord[fm]|[Oo]slash|[AaEeIiOoUuy]?uml|para|plusmn|pound|QUOT|quot|raquo|REG|reg|sect|shy|sup[123]|szlig|THORN|thorn|times|yen)(?=[^;]|$)" attribute="EntityRef"/></context><context name="FindText" attribute="Normal Text"><DetectSpaces/><DetectIdentifier/></context><context name="FindAttributes" attribute="Other Text"><DetectChar char="=" attribute="Attribute Separator" context="Value"/><RegExpr String="(^|\s+)[A-Za-z_:*#\(\[][\)\]\w.:_-]*(\s+[A-Za-z_:*#\(\[][\)\]\w.:_-]*)*\s*|\s+" attribute="Attribute"/></context><context name="DefaultJS" attribute="Other Text"><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="script"/><DetectChar char="=" attribute="Attribute Separator" context="Value"/><RegExpr String="(^|\s+)[A-Za-z_:*#\(\[][\)\]\w.:_-]*|\s+" attribute="Attribute"/></context><context name="FindScriptTagClose" attribute="Other Text"><RegExpr String="&lt;/(?=script\b)" attribute="Element Symbols" context="ScriptTagClose" insensitive="1"/></context><context name="JSX" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="JSX content"/><IncludeRules context="DefaultJS"/></context><context name="Default JS content" attribute="Other Text"><IncludeRules context="FindScriptTagClose"/><RegExpr String="//(?=.*?&lt;/script\b)" attribute="Comment" context="#pop!JS comment close" insensitive="1"/></context><context name="FindComment" attribute="Normal Text"><StringDetect String="&lt;!--" attribute="Comment" context="Comment" beginRegion="comment"/></context><context name="FindElements" attribute="Other Text" lineEndContext="#pop"><RegExpr String="&lt;(?=([A-Za-z_:][\w.:_-]*))" attribute="Element Symbols" context="ElementTagName"/><RegExpr String="&lt;/(?=([A-Za-z_:][\w.:_-]*))" attribute="Element Symbols" context="ElementTagNameClose"/></context><context name="FindErrors" attribute="Other Text" lineEndContext="#pop"><StringDetect String="&lt;!" attribute="Error" context="Bogus Comment"/><StringDetect String="&lt;?" attribute="Error" context="Bogus Comment"/><AnyChar String="&amp;&lt;" attribute="Error"/></context><context name="Value" attribute="Other Text" fallthroughContext="Value NQ"><DetectChar char='"' attribute="Value" context="Value DQ"/><DetectChar char="'" attribute="Value" context="Value SQ"/><DetectSpaces/></context><context name="Bogus Comment" attribute="Comment"><DetectChar char=">" attribute="Comment" context="#pop" endRegion="comment"/></context><context name="Comment content" attribute="Comment"><DetectSpaces/><StringDetect String="-->" attribute="Comment" context="#pop#pop" endRegion="comment"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Doctype Value" attribute="Value"><DetectChar char="&amp;" attribute="Error" context="#pop"/><DetectChar char=">" attribute="Error" context="#pop#pop"/></context><context name="FindEntityRefs" attribute="Other Text"><IncludeRules context="FindEntity"/><AnyChar String="&amp;&lt;" attribute="Error"/></context><context name="FindForeign" attribute="Normal Text"><IncludeRules context="FindElements"/><IncludeRules context="FindComment"/><IncludeRules context="FindCDATA"/><IncludeRules context="FindEntity"/><IncludeRules context="FindErrors"/></context><context name="Script HTML template" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="Script HTML template content"/><IncludeRules context="DefaultJS"/></context><context name="TypeScript" attribute="Error"><DetectChar char=">" attribute="Element Symbols" context="TypeScript content"/><IncludeRules context="DefaultJS"/></context><context name="CDATA" attribute="Other Text"><IncludeRules context="FindText"/><StringDetect String="]]>" attribute="CDATA" context="#pop" endRegion="cdata"/></context><context name="CSS" attribute="Error"><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="style"/><DetectChar char=">" attribute="Element Symbols" context="CSS content"/><IncludeRules context="FindAttributes"/></context><context name="CSS content" attribute="Other Text"><RegExpr String="&lt;/(?=style\b)" attribute="Element Symbols" context="CSS content Close" insensitive="1"/><IncludeRules context="##CSS" includeAttrib="1"/></context><context name="CSS content Close" attribute="Other Text"><DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="style"/></context><context name="Comment" attribute="Comment" fallthroughContext="Comment content" lineEndContext="Comment content"><StringDetect String=">" attribute="Error" context="#pop" endRegion="comment"/><StringDetect String="->" attribute="Error" context="#pop" endRegion="comment"/></context><context name="Doctype" attribute="Other Text"><DetectChar char=">" attribute="Doctype" context="#pop"/><DetectChar char='"' attribute="Value" context="Doctype DQ"/><DetectChar char="'" attribute="Value" context="Doctype SQ"/></context><context name="Doctype DQ" attribute="Value"><DetectChar char='"' attribute="Value" context="#pop"/><IncludeRules context="Doctype Value"/></context><context name="Doctype SQ" attribute="Value"><DetectChar char="'" attribute="Value" context="#pop"/><IncludeRules context="Doctype Value"/></context><context name="ElementTagName" attribute="Other Text" lineEndContext="#pop"><IncludeRules context="FindHTMLTags"/><IncludeRules context="FindSpecialHTMLTags"/><StringDetect String="%1" attribute="Element" context="#pop!El Open" dynamic="1"/></context><context name="ElementTagNameClose" attribute="Other Text" lineEndContext="#pop"><IncludeRules context="FindHTMLTagsClose"/><StringDetect String="%1" attribute="Element" context="#pop!El Close" dynamic="1"/></context><context name="FindCDATA" attribute="Other Text" lineEndContext="#pop"><StringDetect String="&lt;![CDATA[" attribute="CDATA" context="CDATA" beginRegion="cdata"/></context><context name="FindHTML" attribute="Normal Text"><IncludeRules context="FindElements"/><IncludeRules context="FindComment"/><WordDetect String="&lt;!DOCTYPE" attribute="Doctype" context="Doctype" insensitive="1"/><IncludeRules context="FindEntity"/><IncludeRules context="FindErrors"/></context><context name="FindHTMLTags" attribute="Normal Text"><WordDetect String="pre" attribute="Element" context="#pop!El Open" beginRegion="pre" insensitive="1"/><WordDetect String="div" attribute="Element" context="#pop!El Open" beginRegion="div" insensitive="1"/><WordDetect String="table" attribute="Element" context="#pop!El Open" beginRegion="table" insensitive="1"/><WordDetect String="ul" attribute="Element" context="#pop!El Open" beginRegion="ul" insensitive="1"/><WordDetect String="ol" attribute="Element" context="#pop!El Open" beginRegion="ol" insensitive="1"/><WordDetect String="dl" attribute="Element" context="#pop!El Open" beginRegion="dl" insensitive="1"/><WordDetect String="article" attribute="Element" context="#pop!El Open" beginRegion="article" insensitive="1"/><WordDetect String="aside" attribute="Element" context="#pop!El Open" beginRegion="aside" insensitive="1"/><WordDetect String="details" attribute="Element" context="#pop!El Open" beginRegion="details" insensitive="1"/><WordDetect String="figure" attribute="Element" context="#pop!El Open" beginRegion="figure" insensitive="1"/><WordDetect String="footer" attribute="Element" context="#pop!El Open" beginRegion="footer" insensitive="1"/><WordDetect String="header" attribute="Element" context="#pop!El Open" beginRegion="header" insensitive="1"/><WordDetect String="main" attribute="Element" context="#pop!El Open" beginRegion="main" insensitive="1"/><WordDetect String="nav" attribute="Element" context="#pop!El Open" beginRegion="nav" insensitive="1"/><WordDetect String="section" attribute="Element" context="#pop!El Open" beginRegion="section" insensitive="1"/></context><context name="FindHTMLTagsClose" attribute="Normal Text"><WordDetect String="pre" attribute="Element" context="#pop!El Close" endRegion="pre" insensitive="1"/><WordDetect String="div" attribute="Element" context="#pop!El Close" endRegion="div" insensitive="1"/><WordDetect String="table" attribute="Element" context="#pop!El Close" endRegion="table" insensitive="1"/><WordDetect String="ul" attribute="Element" context="#pop!El Close" endRegion="ul" insensitive="1"/><WordDetect String="ol" attribute="Element" context="#pop!El Close" endRegion="ol" insensitive="1"/><WordDetect String="dl" attribute="Element" context="#pop!El Close" endRegion="dl" insensitive="1"/><WordDetect String="article" attribute="Element" context="#pop!El Close" endRegion="article" insensitive="1"/><WordDetect String="aside" attribute="Element" context="#pop!El Close" endRegion="aside" insensitive="1"/><WordDetect String="details" attribute="Element" context="#pop!El Close" endRegion="details" insensitive="1"/><WordDetect String="figure" attribute="Element" context="#pop!El Close" endRegion="figure" insensitive="1"/><WordDetect String="footer" attribute="Element" context="#pop!El Close" endRegion="footer" insensitive="1"/><WordDetect String="header" attribute="Element" context="#pop!El Close" endRegion="header" insensitive="1"/><WordDetect String="main" attribute="Element" context="#pop!El Close" endRegion="main" insensitive="1"/><WordDetect String="nav" attribute="Element" context="#pop!El Close" endRegion="nav" insensitive="1"/><WordDetect String="section" attribute="Element" context="#pop!El Close" endRegion="section" insensitive="1"/></context><context name="FindSpecialHTMLTags" attribute="Normal Text"><WordDetect String="style" attribute="Element" context="#pop!CSS" beginRegion="style" insensitive="1"/><WordDetect String="script" attribute="Element" context="#pop!JS" beginRegion="script" insensitive="1"/><WordDetect String="svg" attribute="Element" context="#pop!SVG" beginRegion="svg" insensitive="1"/><WordDetect String="math" attribute="Element" context="#pop!MATH" beginRegion="math" insensitive="1"/><WordDetect String="textarea" attribute="Element" context="#pop!Textarea" beginRegion="textarea" insensitive="1"/><WordDetect String="title" attribute="Element" context="#pop!Title" insensitive="1"/></context><context name="JS" attribute="Error"><RegExpr String="(?:\s+|^)type(?=\=|\s|$)" attribute="Attribute" context="Script-Type" insensitive="1"/><DetectChar char=">" attribute="Element Symbols" context="JS content"/><IncludeRules context="DefaultJS"/></context><context name="JS comment close" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="FindScriptTagClose"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="JS content" attribute="Other Text"><IncludeRules context="Default JS content"/><IncludeRules context="Normal##JavaScript" includeAttrib="1"/></context><context name="JSX content" attribute="Other Text"><IncludeRules context="Default JS content"/><IncludeRules context="Normal##JavaScript React (JSX)" includeAttrib="1"/></context><context name="MATH" attribute="Error"><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="math"/><DetectChar char=">" attribute="Element Symbols" context="MATH content"/><IncludeRules context="FindAttributes"/></context><context name="MATH content" attribute="Other Text"><IncludeRules context="FindText"/><RegExpr String="&lt;/(?=math\b)" attribute="Element Symbols" context="MATH content Close" insensitive="1"/><IncludeRules context="FindForeign"/></context><context name="MATH content Close" attribute="Other Text"><DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="math"/></context><context name="MustacheJS content" attribute="Other Text"><IncludeRules context="FindScriptTagClose"/><StringDetect String="&lt;script>" attribute="Error" insensitive="1"/><WordDetect String="&lt;script" attribute="Error" insensitive="1"/><IncludeRules context="Base##Mustache/Handlebars (HTML)" includeAttrib="1"/></context><context name="SVG" attribute="Error"><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="svg"/><DetectChar char=">" attribute="Element Symbols" context="SVG content"/><IncludeRules context="FindAttributes"/></context><context name="SVG content" attribute="Other Text"><IncludeRules context="FindText"/><RegExpr String="&lt;/(?=svg\b)" attribute="Element Symbols" context="SVG content Close" insensitive="1"/><IncludeRules context="FindForeign"/></context><context name="SVG content Close" attribute="Other Text"><DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="svg"/></context><context name="Script HTML template content" attribute="Other Text"><IncludeRules context="FindText"/><IncludeRules context="FindScriptTagClose"/><StringDetect String="&lt;script>" attribute="Error" insensitive="1"/><WordDetect String="&lt;script" attribute="Error" insensitive="1"/><IncludeRules context="FindElements"/><IncludeRules context="FindComment"/><IncludeRules context="FindEntity"/><IncludeRules context="FindErrors"/></context><context name="Script-Type" attribute="Other Text" fallthroughContext="#pop"><DetectSpaces/><DetectChar char="=" attribute="Attribute" context="#pop!Script-Type Value"/></context><context name="Script-Type Value" attribute="Other Text" fallthroughContext="#pop!Value"><DetectSpaces/><StringDetect String='"text/typescript"' attribute="Value" context="#pop#pop!TypeScript"/><StringDetect String="'text/typescript'" attribute="Value" context="#pop#pop!TypeScript"/><StringDetect String='"text/jsx"' attribute="Value" context="#pop#pop!JSX"/><StringDetect String="'text/jsx'" attribute="Value" context="#pop#pop!JSX"/><StringDetect String='"text/babel"' attribute="Value" context="#pop#pop!JSX"/><StringDetect String="'text/babel'" attribute="Value" context="#pop#pop!JSX"/><StringDetect String='"x-tmpl-mustache"' attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String="'x-tmpl-mustache'" attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String='"text/mustache"' attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String="'text/mustache'" attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String='"text/x-mustache-template"' attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String="'text/x-mustache-template'" attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String='"text/x-handlebars-template"' attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String="'text/x-handlebars-template'" attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String='"text/ractive"' attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String="'text/ractive'" attribute="Value" context="#pop#pop!MustacheJS"/><StringDetect String='"text/html"' attribute="Value" context="#pop#pop!Script HTML template"/><StringDetect String="'text/html'" attribute="Value" context="#pop#pop!Script HTML template"/></context><context name="ScriptTagClose" attribute="Other Text"><DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="script"/></context><context name="Textarea" attribute="Error"><StringDetect String="/>" attribute="Element Symbols" context="#pop" endRegion="textarea"/><DetectChar char=">" attribute="Element Symbols" context="Textarea content"/><IncludeRules context="FindAttributes"/></context><context name="Textarea content" attribute="Other Text"><IncludeRules context="FindText"/><RegExpr String="&lt;/(?=textarea\b)" attribute="Element Symbols" context="Textarea content Close" insensitive="1"/><IncludeRules context="FindEntity"/><DetectChar char="&amp;" attribute="Error"/></context><context name="Textarea content Close" attribute="Other Text"><DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close" endRegion="textarea"/></context><context name="Title" attribute="Error"><StringDetect String="/>" attribute="Element Symbols" context="#pop"/><DetectChar char=">" attribute="Element Symbols" context="Title content"/><IncludeRules context="FindAttributes"/></context><context name="Title content" attribute="Other Text"><IncludeRules context="FindText"/><RegExpr String="&lt;/(?=title\b)" attribute="Element Symbols" context="Title content Close" insensitive="1"/><IncludeRules context="FindEntity"/><DetectChar char="&amp;" attribute="Error"/></context><context name="Title content Close" attribute="Other Text"><DetectIdentifier attribute="Element" context="#pop#pop#pop!El Close"/></context><context name="TypeScript content" attribute="Other Text"><IncludeRules context="Default JS content"/><IncludeRules context="Normal##TypeScript" includeAttrib="1"/></context><context name="Value DQ" attribute="Value"><DetectChar char='"' attribute="Value" context="#pop#pop"/><IncludeRules context="FindEntityRefs"/></context><context name="Value NQ" attribute="Other Text" fallthroughContext="#pop#pop" lineEndContext="#pop#pop"><RegExpr String="[^>&lt;&#34;'&amp;\s=`{}]+" attribute="Value"/><IncludeRules context="FindEntity"/><AnyChar String="&amp;&lt;&#34;'`=" attribute="Error"/><AnyChar String="{}" attribute="Value"/></context><context name="Value SQ" attribute="Value"><DetectChar char="'" attribute="Value" context="#pop#pop"/><IncludeRules context="FindEntityRefs"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Other Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="CDATA" defStyleNum="dsBaseN" bold="1" spellChecking="0"/><itemData name="Doctype" defStyleNum="dsDataType" bold="1" spellChecking="0"/><itemData name="Element" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Element Symbols" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Attribute" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Attribute Separator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Value" defStyleNum="dsString" spellChecking="0"/><itemData name="EntityRef" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="multiLine" start="&lt;!--" end="-->" region="comment"/></comments></general></language>