summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/html.xml
Unidiff
Diffstat (limited to 'share/tinykate/syntax/html.xml') (more/less context) (ignore whitespace changes)
-rw-r--r--share/tinykate/syntax/html.xml50
1 files changed, 50 insertions, 0 deletions
diff --git a/share/tinykate/syntax/html.xml b/share/tinykate/syntax/html.xml
new file mode 100644
index 0000000..f4ce3f0
--- a/dev/null
+++ b/share/tinykate/syntax/html.xml
@@ -0,0 +1,50 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE language SYSTEM "language.dtd">
3<language name="HTML" version="1.00" kateversion="2.0" section="Markup" extensions="*.html;*.htm;*.shtml;*.shtm" mimetype="text/html">
4 <highlighting>
5 <contexts>
6 <context attribute="0" lineEndContext="#stay">
7 <StringDetect attribute="Comment" context="6" String="&lt;!--"/>
8 <RegExpr attribute="1" context="1" String="&lt;\s*\/?\s*[a-zA-Z0-9_]*" />
9 </context>
10
11 <context attribute="2" lineEndContext="#stay">
12 <DetectChar attribute="1" context="#pop" char="&gt;"/>
13 <RegExpr attribute="0" context="2" String="\s*=\s*"/>
14 </context>
15
16 <context attribute="8" lineEndContext="#stay">
17 <RegExpr attribute="3" context="#pop" String="\s*#?[a-zA-Z0-9]*" />
18 <DetectChar attribute="3" context="3" char="&quot;" />
19 </context>
20
21 <context attribute="3" lineEndContext="#stay">
22 <DetectChar attribute="3" context="#pop#pop" char="&quot;" />
23 </context>
24
25 <context attribute="5" lineEndContext="#pop"/>
26 <context attribute="4" lineEndContext="#pop">
27 <DetectChar attribute="4" context="#pop" char="'"/>
28 </context>
29
30 <context attribute="Comment" lineEndContext="#stay">
31 <String---Detect attribute="Comment" context="6" String="&lt;!--"/>
32 <StringDetect attribute="Comment" context="#pop" String="--&gt;"/>
33 </context>
34 </contexts>
35 <itemDatas>
36 <itemData name="Normal Text" defStyleNum="dsNormal"/>
37 <itemData name="Keyword" defStyleNum="dsKeyword"/>
38 <itemData name="Identifier" defStyleNum="dsOthers"/>
39 <itemData name="Types" defStyleNum="dsDataType"/>
40 <itemData name="String" defStyleNum="dsString"/>
41 <itemData name="Comment" defStyleNum="dsComment"/>
42 </itemDatas>
43 </highlighting>
44 <general>
45 <comments>
46 <comment name="multiLine" start="&lt;!--" end="//--&gt;" />
47 </comments>
48 <keywords casesensitive="0" />
49 </general>
50</language>