Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/html.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd" | 2 | <!DOCTYPE language SYSTEM "language.dtd" | ||
3 | [ | 3 | [ | ||
4 | <!ENTITY name "[A-Za-z_:][\w.:_-]*"> | 4 | <!ENTITY name "[A-Za-z_:][\w.:_-]*"> | ||
5 | <!ENTITY attributeName "[A-Za-z_:*#\(\[][\)\]\w.:_-]*"> | 5 | <!ENTITY attributeName "[A-Za-z_:*#\(\[][\)\]\w.:_-]*"> | ||
6 | <!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> | 6 | <!ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);"> | ||
7 | ]> | 7 | ]> | ||
8 | <language name="HTML" version="6" kateversion="3.4" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> | 8 | <language name="HTML" version="7" kateversion="3.4" section="Markup" extensions="*.htm;*.html;*.shtml;*.shtm" mimetype="text/html" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL" priority="10"> | ||
9 | 9 | | |||
10 | <highlighting> | 10 | <highlighting> | ||
11 | <contexts> | 11 | <contexts> | ||
12 | <context name="Start" attribute="Normal Text" lineEndContext="#stay"> | 12 | <context name="Start" attribute="Normal Text" lineEndContext="#stay"> | ||
13 | <IncludeRules context="FindHTML" /> | 13 | <IncludeRules context="FindHTML" /> | ||
14 | </context> | 14 | </context> | ||
15 | 15 | | |||
16 | <context name="FindHTML" attribute="Normal Text" lineEndContext="#stay"> | 16 | <context name="FindHTML" attribute="Normal Text" lineEndContext="#stay"> | ||
▲ Show 20 Lines • Show All 207 Lines • ▼ Show 20 Line(s) | 219 | <context name="Script-Type Value" attribute="Other Text" lineEndContext="#stay" fallthrough="true" fallthroughContext="#pop!Value"> | |||
224 | <!-- JSX (JavaScript React) --> | 224 | <!-- JSX (JavaScript React) --> | ||
225 | <StringDetect attribute="Value" context="#pop#pop!JSX" String=""text/jsx""/> | 225 | <StringDetect attribute="Value" context="#pop#pop!JSX" String=""text/jsx""/> | ||
226 | <StringDetect attribute="Value" context="#pop#pop!JSX" String="'text/jsx'"/> | 226 | <StringDetect attribute="Value" context="#pop#pop!JSX" String="'text/jsx'"/> | ||
227 | <StringDetect attribute="Value" context="#pop#pop!JSX" String=""text/babel""/> | 227 | <StringDetect attribute="Value" context="#pop#pop!JSX" String=""text/babel""/> | ||
228 | <StringDetect attribute="Value" context="#pop#pop!JSX" String="'text/babel'"/> | 228 | <StringDetect attribute="Value" context="#pop#pop!JSX" String="'text/babel'"/> | ||
229 | <!-- MustacheJS / HandlebarsJS / RactiveJS --> | 229 | <!-- MustacheJS / HandlebarsJS / RactiveJS --> | ||
230 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""x-tmpl-mustache""/> | 230 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""x-tmpl-mustache""/> | ||
231 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'x-tmpl-mustache'"/> | 231 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'x-tmpl-mustache'"/> | ||
232 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/mustache""/> | ||||
233 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/mustache'"/> | ||||
232 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/x-mustache-template""/> | 234 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/x-mustache-template""/> | ||
233 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/x-mustache-template'"/> | 235 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/x-mustache-template'"/> | ||
234 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/x-handlebars-template""/> | 236 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/x-handlebars-template""/> | ||
235 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/x-handlebars-template'"/> | 237 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/x-handlebars-template'"/> | ||
236 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/ractive""/> | 238 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String=""text/ractive""/> | ||
237 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/ractive'"/> | 239 | <StringDetect attribute="Value" context="#pop#pop!MustacheJS" String="'text/ractive'"/> | ||
240 | <!-- HTML templates --> | ||||
241 | <StringDetect attribute="Value" context="#pop#pop!Script HTML template" String=""text/html""/> | ||||
242 | <StringDetect attribute="Value" context="#pop#pop!Script HTML template" String="'text/html'"/> | ||||
238 | </context> | 243 | </context> | ||
239 | 244 | | |||
240 | <context name="JSX" attribute="Other Text" lineEndContext="#stay"> | 245 | <context name="JSX" attribute="Other Text" lineEndContext="#stay"> | ||
241 | <DetectChar attribute="Element" context="JSX content" char=">" /> | 246 | <DetectChar attribute="Element" context="JSX content" char=">" /> | ||
242 | <IncludeRules context="DefaultJS" /> | 247 | <IncludeRules context="DefaultJS" /> | ||
243 | </context> | 248 | </context> | ||
244 | <context name="JSX content" attribute="Other Text" lineEndContext="#stay"> | 249 | <context name="JSX content" attribute="Other Text" lineEndContext="#stay"> | ||
245 | <IncludeRules context="Default JS content"/> | 250 | <IncludeRules context="Default JS content"/> | ||
Show All 9 Lines | 258 | <context name="TypeScript content" attribute="Other Text" lineEndContext="#stay"> | |||
255 | <IncludeRules context="Normal##TypeScript" includeAttrib="true"/> | 260 | <IncludeRules context="Normal##TypeScript" includeAttrib="true"/> | ||
256 | </context> | 261 | </context> | ||
257 | 262 | | |||
258 | <context name="MustacheJS" attribute="Other Text" lineEndContext="#stay"> | 263 | <context name="MustacheJS" attribute="Other Text" lineEndContext="#stay"> | ||
259 | <DetectChar attribute="Element" context="MustacheJS content" char=">" /> | 264 | <DetectChar attribute="Element" context="MustacheJS content" char=">" /> | ||
260 | <IncludeRules context="DefaultJS" /> | 265 | <IncludeRules context="DefaultJS" /> | ||
261 | </context> | 266 | </context> | ||
262 | <context name="MustacheJS content" attribute="Other Text" lineEndContext="#stay"> | 267 | <context name="MustacheJS content" attribute="Other Text" lineEndContext="#stay"> | ||
263 | <IncludeRules context="Default JS content"/> | 268 | <RegExpr attribute="Element" context="El Close 2" String="</script\b" insensitive="true" endRegion="script" /> | ||
264 | <IncludeRules context="Normal##MustacheJS" includeAttrib="true"/> | 269 | <StringDetect attribute="Error" context="#stay" String="<script>" insensitive="true" /> | ||
270 | <RegExpr attribute="Error" context="#stay" String="<script\b" insensitive="true" /> | ||||
271 | <IncludeRules context="Base##Mustache/Handlebars (HTML)" includeAttrib="true"/> | ||||
272 | </context> | ||||
273 | | ||||
274 | <context name="Script HTML template" attribute="Other Text" lineEndContext="#stay"> | ||||
275 | <DetectChar attribute="Element" context="Script HTML template content" char=">" /> | ||||
276 | <IncludeRules context="DefaultJS" /> | ||||
277 | </context> | ||||
278 | <context name="Script HTML template content" attribute="Other Text" lineEndContext="#stay"> | ||||
279 | <RegExpr attribute="Element" context="El Close 2" String="</script\b" insensitive="true" endRegion="script" /> | ||||
280 | <StringDetect attribute="Error" context="#stay" String="<script>" insensitive="true" /> | ||||
281 | <RegExpr attribute="Error" context="#stay" String="<script\b" insensitive="true" /> | ||||
282 | <IncludeRules context="FindHTML" /> | ||||
265 | </context> | 283 | </context> | ||
266 | 284 | | |||
267 | </contexts> | 285 | </contexts> | ||
268 | <itemDatas> | 286 | <itemDatas> | ||
269 | <itemData name="Normal Text" defStyleNum="dsNormal" /> | 287 | <itemData name="Normal Text" defStyleNum="dsNormal" /> | ||
270 | <itemData name="Other Text" defStyleNum="dsNormal" spellChecking="false" /> | 288 | <itemData name="Other Text" defStyleNum="dsNormal" spellChecking="false" /> | ||
271 | <itemData name="Comment" defStyleNum="dsComment" /> | 289 | <itemData name="Comment" defStyleNum="dsComment" /> | ||
272 | <itemData name="CDATA" defStyleNum="dsBaseN" bold="1" spellChecking="false" /> | 290 | <itemData name="CDATA" defStyleNum="dsBaseN" bold="1" spellChecking="false" /> | ||
Show All 17 Lines |