Free cookie consent management tool by TermsFeed Policy Generator

source: branches/crossvalidation-2434/HeuristicLab.ExtLibs/HeuristicLab.AvalonEdit/5.0.1/AvalonEdit-5.0.1/Highlighting/Resources/HTML-Mode.xshd @ 13042

Last change on this file since 13042 was 11700, checked in by jkarder, 10 years ago

#2077: created branch and added first version

File size: 11.3 KB
Line 
1<?xml version="1.0"?>
2<!-- syntaxdefinition for HTML 2000 by Mike Krueger -->
3<!-- converted to AvalonEdit format by Siegfried Pammer in 2010 -->
4<SyntaxDefinition name="HTML" extensions=".htm;.html" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
5  <Color name="Comment" foreground="DarkSlateGray" exampleText="&lt;!-- comment --&gt;" />
6  <Color name="Digits" foreground="DarkBlue" exampleText="&lt;digits&gt;0123456789&lt;/digits&gt;" />
7  <Color name="ScriptTag" foreground="#FF8B008B" exampleText="&lt;script&gt;alert('Hello World!');&lt;/script&gt;" />
8  <Color name="JavaScriptTag" foreground="#FF8B008B" exampleText="&lt;script lang=&quot;JavaScript&quot;&gt;alert('Hello World!');&lt;/script&gt;" />
9  <Color name="JScriptTag" foreground="#FF8B008B" exampleText="&lt;script lang=&quot;JScript&quot;&gt;Response.Write(&quot;Hello World!&quot;);&lt;/script&gt;" />
10  <Color name="VBScriptTag" foreground="#FF8B008B" exampleText="&lt;script lang=&quot;VBScript&quot;&gt;Response.Write(&quot;Hello World!&quot;)&lt;/script&gt;" />
11  <Color name="UnknownScriptTag" foreground="#FF8B008B" exampleText="&lt;script la&gt;alert('Hello World!');&lt;/script&gt;" />
12  <Color name="HtmlTag" foreground="#FF8B008B" exampleText="&lt;html&gt;Hello World!/html&gt;" />
13  <Color name="Tags" foreground="#FF8B008B" exampleText="&lt;html&gt;Hello World! &lt;test /&gt;&lt;/html&gt;" />
14  <Color name="Attributes" foreground="Red" exampleText="&lt;html background='green'&gt;Hello World! &lt;test /&gt;&lt;/html&gt;" />
15  <Color name="Slash" foreground="DarkMagenta" exampleText="&lt;html background='green'&gt;Hello World! &lt;test /&gt;&lt;/html&gt;" />
16  <Color name="Assignment" foreground="Blue" exampleText="&lt;html background='green'&gt;Hello World! &lt;test /&gt;&lt;/html&gt;" />
17  <Color name="String" foreground="Blue" exampleText="&lt;html background='green'&gt;Hello World! &lt;test /&gt;&lt;/html&gt;" />
18  <Color name="EntityReference" foreground="Blue" exampleText="&lt;html background='green'&gt;Hello&amp;nbsp;World! &lt;test /&gt;&lt;/html&gt;" />
19  <Color name="Entities" foreground="#FF008000" exampleText="&lt;html background='green'&gt;Hello&amp;nbsp;World! &lt;test /&gt;&lt;/html&gt;" />
20  <Color name="UnknownAttribute" foreground="Blue" exampleText="&lt;html foo='bar' background='green'&gt;Hello&amp;nbsp;World! &lt;test /&gt;&lt;/html&gt;" />
21  <RuleSet ignoreCase="true">
22    <Span color="Comment" multiline="true">
23      <Begin>&lt;!--</Begin>
24      <End>--&gt;</End>
25    </Span>
26    <Span ruleSet="JavaScriptSet" multiline="true">
27      <Begin color="JavaScriptTag">&lt;script\ lang="JavaScript"&gt;</Begin>
28      <End color="JavaScriptTag">&lt;/script&gt;</End>
29    </Span>
30    <Span ruleSet="JavaScriptSet" multiline="true">
31      <Begin color="JavaScriptTag">&lt;script\s.*?text/javascript.*?&gt;</Begin>
32      <End color="JavaScriptTag">&lt;/script&gt;</End>
33    </Span>
34    <Span multiline="true">
35      <Begin color="JScriptTag">&lt;script\ lang="JScript"&gt;</Begin>
36      <End color="JScriptTag">&lt;/script&gt;</End>
37    </Span>
38    <Span multiline="true">
39      <Begin color="VBScriptTag">&lt;script\ lang="VBScript"&gt;</Begin>
40      <End color="VBScriptTag">&lt;/script&gt;</End>
41    </Span>
42    <Span ruleSet="JavaScriptSet" multiline="true">
43      <Begin color="ScriptTag">&lt;script&gt;</Begin>
44      <End color="ScriptTag">&lt;/script&gt;</End>
45    </Span>
46    <Span multiline="true">
47      <Begin color="UnknownScriptTag">&lt;script[^\w\d_]</Begin>
48      <End color="UnknownScriptTag">&lt;/script&gt;</End>
49    </Span>
50    <Span color="HtmlTag" ruleSet="HtmlTagSet" multiline="true">
51      <Begin>&lt;</Begin>
52      <End>&gt;</End>
53    </Span>
54    <Span color="EntityReference" ruleSet="EntityReferenceSet">
55      <Begin>&amp;</Begin>
56      <End>;</End>
57    </Span>
58    <Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
59  </RuleSet>
60  <RuleSet name="JavaScriptSet">
61    <Import ruleSet="JavaScript/" />
62    <Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
63  </RuleSet>
64  <RuleSet name="EntityReferenceSet" ignoreCase="false">
65    <Keywords color="Entities">
66      <Word>aacute</Word>
67      <Word>agrave</Word>
68      <Word>acirc</Word>
69      <Word>amp</Word>
70      <Word>atilde</Word>
71      <Word>aring</Word>
72      <Word>auml</Word>
73      <Word>aelig</Word>
74      <Word>ccedil</Word>
75      <Word>copy</Word>
76      <Word>eacute</Word>
77      <Word>egrave</Word>
78      <Word>ecirc</Word>
79      <Word>euml</Word>
80      <Word>iacute</Word>
81      <Word>igrave</Word>
82      <Word>icirc</Word>
83      <Word>iuml</Word>
84      <Word>eth</Word>
85      <Word>gt</Word>
86      <Word>lt</Word>
87      <Word>nbsp</Word>
88      <Word>ntilde</Word>
89      <Word>oacute</Word>
90      <Word>ograve</Word>
91      <Word>ocirc</Word>
92      <Word>otilde</Word>
93      <Word>ouml</Word>
94      <Word>oslash</Word>
95      <Word>quot</Word>
96      <Word>reg</Word>
97      <Word>szlig</Word>
98      <Word>uacute</Word>
99      <Word>ugrave</Word>
100      <Word>ucirc</Word>
101      <Word>uuml</Word>
102      <Word>yacute</Word>
103      <Word>thorn</Word>
104      <Word>trade</Word>
105      <Word>yuml</Word>
106    </Keywords>
107    <Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
108  </RuleSet>
109  <RuleSet name="HtmlTagSet" ignoreCase="false">
110    <Keywords color="Slash">
111      <Word>/</Word>
112    </Keywords>
113    <Keywords color="Assignment">
114      <Word>=</Word>
115    </Keywords>
116    <Keywords color="Tags">
117      <Word>!DOCTYPE</Word>
118      <Word>A</Word>
119      <Word>ABBR</Word>
120      <Word>ACRONYM</Word>
121      <Word>ADDRESS</Word>
122      <Word>APPLET</Word>
123      <Word>AREA</Word>
124      <Word>B</Word>
125      <Word>BASE</Word>
126      <Word>BASEFONT</Word>
127      <Word>BGSOUND</Word>
128      <Word>BDO</Word>
129      <Word>BIG</Word>
130      <Word>BLINK</Word>
131      <Word>BLOCKQUOTE</Word>
132      <Word>BODY</Word>
133      <Word>BR</Word>
134      <Word>BUTTON</Word>
135      <Word>CAPTION</Word>
136      <Word>CENTER</Word>
137      <Word>CITE</Word>
138      <Word>CODE</Word>
139      <Word>COL</Word>
140      <Word>COLGROUP</Word>
141      <Word>COMMENT</Word>
142      <Word>DD</Word>
143      <Word>DEL</Word>
144      <Word>DFN</Word>
145      <Word>DIR</Word>
146      <Word>DIV</Word>
147      <Word>DL</Word>
148      <Word>DT</Word>
149      <Word>EM</Word>
150      <Word>EMBED</Word>
151      <Word>FIELDSET</Word>
152      <Word>FONT</Word>
153      <Word>FORM</Word>
154      <Word>FRAME</Word>
155      <Word>FRAMESET</Word>
156      <Word>H</Word>
157      <Word>H1</Word>
158      <Word>H2</Word>
159      <Word>H3</Word>
160      <Word>H4</Word>
161      <Word>H5</Word>
162      <Word>H6</Word>
163      <Word>HEAD</Word>
164      <Word>HR</Word>
165      <Word>HTA:APPLICATION</Word>
166      <Word>HTML</Word>
167      <Word>I</Word>
168      <Word>IFRAME</Word>
169      <Word>IMG</Word>
170      <Word>INPUT</Word>
171      <Word>INS</Word>
172      <Word>ISINDEX</Word>
173      <Word>KBD</Word>
174      <Word>LABEL</Word>
175      <Word>LEGEnd</Word>
176      <Word>LI</Word>
177      <Word>LINK</Word>
178      <Word>LISTING</Word>
179      <Word>MAP</Word>
180      <Word>MARQUEE</Word>
181      <Word>MENU</Word>
182      <Word>META</Word>
183      <Word>MULTICOL</Word>
184      <Word>NEXTID</Word>
185      <Word>NOBR</Word>
186      <Word>NOFRAMES</Word>
187      <Word>NOSCRIPT</Word>
188      <Word>OBJECT</Word>
189      <Word>OL</Word>
190      <Word>OPTGROUP</Word>
191      <Word>OPTION</Word>
192      <Word>P</Word>
193      <Word>PARAM</Word>
194      <Word>PLAINTEXT</Word>
195      <Word>PRE</Word>
196      <Word>Q</Word>
197      <Word>S</Word>
198      <Word>SAMP</Word>
199      <Word>SCRIPT</Word>
200      <Word>SELECT</Word>
201      <Word>SERVER</Word>
202      <Word>SMALL</Word>
203      <Word>SOUND</Word>
204      <Word>SPACER</Word>
205      <Word>Span</Word>
206      <Word>STRONG</Word>
207      <Word>STYLE</Word>
208      <Word>SUB</Word>
209      <Word>SUP</Word>
210      <Word>TABLE</Word>
211      <Word>TBODY</Word>
212      <Word>TD</Word>
213      <Word>TEXTAREA</Word>
214      <Word>TEXTFLOW</Word>
215      <Word>TFOOT</Word>
216      <Word>TH</Word>
217      <Word>THEAD</Word>
218      <Word>TITLE</Word>
219      <Word>TR</Word>
220      <Word>TT</Word>
221      <Word>U</Word>
222      <Word>VAR</Word>
223      <Word>WBR</Word>
224      <Word>XMP</Word>
225    </Keywords>
226    <Keywords color="Attributes">
227      <Word>abbr</Word>
228      <Word>accept-charset</Word>
229      <Word>accept</Word>
230      <Word>accesskey</Word>
231      <Word>action</Word>
232      <Word>align</Word>
233      <Word>alink</Word>
234      <Word>alt</Word>
235      <Word>applicationname</Word>
236      <Word>archive</Word>
237      <Word>axis</Word>
238      <Word>background</Word>
239      <Word>behavior</Word>
240      <Word>bgcolor</Word>
241      <Word>bgproperties</Word>
242      <Word>border</Word>
243      <Word>bordercolor</Word>
244      <Word>bordercolordark</Word>
245      <Word>bordercolorligh</Word>
246      <Word>borderstyle</Word>
247      <Word>caption</Word>
248      <Word>cellpadding</Word>
249      <Word>cellspacing</Word>
250      <Word>char</Word>
251      <Word>charoff</Word>
252      <Word>charset</Word>
253      <Word>checked</Word>
254      <Word>cite</Word>
255      <Word>class</Word>
256      <Word>classid</Word>
257      <Word>clear</Word>
258      <Word>code</Word>
259      <Word>codetype</Word>
260      <Word>color</Word>
261      <Word>cols</Word>
262      <Word>colspan</Word>
263      <Word>compact</Word>
264      <Word>content</Word>
265      <Word>coords</Word>
266      <Word>data</Word>
267      <Word>datetime</Word>
268      <Word>declare</Word>
269      <Word>defer</Word>
270      <Word>dir</Word>
271      <Word>direction</Word>
272      <Word>disabled</Word>
273      <Word>dynsrc</Word>
274      <Word>enctype</Word>
275      <Word>face</Word>
276      <Word>for</Word>
277      <Word>frame</Word>
278      <Word>frameborder</Word>
279      <Word>framespacing</Word>
280      <Word>gutter</Word>
281      <Word>headers</Word>
282      <Word>height</Word>
283      <Word>href</Word>
284      <Word>hreflang</Word>
285      <Word>hspace</Word>
286      <Word>http-equiv</Word>
287      <Word>icon</Word>
288      <Word>id</Word>
289      <Word>ismap</Word>
290      <Word>label</Word>
291      <Word>language</Word>
292      <Word>leftmargin</Word>
293      <Word>link</Word>
294      <Word>longdesc</Word>
295      <Word>loop</Word>
296      <Word>lowsrc</Word>
297      <Word>marginheight</Word>
298      <Word>marginwidth</Word>
299      <Word>maximizebutton</Word>
300      <Word>maxlength</Word>
301      <Word>media</Word>
302      <Word>method</Word>
303      <Word>methods</Word>
304      <Word>minimizebutton</Word>
305      <Word>multiple</Word>
306      <Word>name</Word>
307      <Word>nohref</Word>
308      <Word>noresize</Word>
309      <Word>noshade</Word>
310      <Word>nowrap</Word>
311      <Word>object</Word>
312      <Word>onabort</Word>
313      <Word>onblur</Word>
314      <Word>onchange</Word>
315      <Word>onclick</Word>
316      <Word>ondblclick</Word>
317      <Word>onerror</Word>
318      <Word>onfocus</Word>
319      <Word>onkeydown</Word>
320      <Word>onkeypress</Word>
321      <Word>onkeyup</Word>
322      <Word>onload</Word>
323      <Word>onmousedown</Word>
324      <Word>onmousemove</Word>
325      <Word>onmouseout</Word>
326      <Word>onmouseover</Word>
327      <Word>onmouseup</Word>
328      <Word>onreset</Word>
329      <Word>onselect</Word>
330      <Word>onsubmit</Word>
331      <Word>onunload</Word>
332      <Word>profile</Word>
333      <Word>prompt</Word>
334      <Word>readonly</Word>
335      <Word>rel</Word>
336      <Word>rev</Word>
337      <Word>rows</Word>
338      <Word>rowspan</Word>
339      <Word>rules</Word>
340      <Word>runat</Word>
341      <Word>scheme</Word>
342      <Word>scope</Word>
343      <Word>scrollamount</Word>
344      <Word>scrolldelay</Word>
345      <Word>scrolling</Word>
346      <Word>selected</Word>
347      <Word>shape</Word>
348      <Word>showintaskbar</Word>
349      <Word>singleinstance</Word>
350      <Word>size</Word>
351      <Word>span</Word>
352      <Word>src</Word>
353      <Word>standby</Word>
354      <Word>start</Word>
355      <Word>style</Word>
356      <Word>summary</Word>
357      <Word>sysmenu</Word>
358      <Word>tabindex</Word>
359      <Word>target</Word>
360      <Word>text</Word>
361      <Word>title</Word>
362      <Word>topmargin</Word>
363      <Word>type</Word>
364      <Word>urn</Word>
365      <Word>usemap</Word>
366      <Word>valign</Word>
367      <Word>value</Word>
368      <Word>valuetype</Word>
369      <Word>version</Word>
370      <Word>vlink</Word>
371      <Word>vrml</Word>
372      <Word>vspace</Word>
373      <Word>width</Word>
374      <Word>windowstate</Word>
375      <Word>wrap</Word>
376    </Keywords>
377    <Span color="String">
378      <Begin>"</Begin>
379      <End>"</End>
380    </Span>
381    <Span color="String">
382      <Begin>'</Begin>
383      <End>'</End>
384    </Span>
385    <Rule color="UnknownAttribute">[\d\w_]+(?=(\s*=))</Rule>
386    <Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
387  </RuleSet>
388</SyntaxDefinition>
Note: See TracBrowser for help on using the repository browser.