ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_xhtml11.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3if (!isset ($BEAUT_PATH)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_xhtml11 extends HFile{
6 function HFile_xhtml11(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// XHTML 1.1
11/*************************************/
12// Flags
13
14$this->nocase = "0";
15$this->notrim = "0";
16$this->perl = "0";
17
18// Colours
19
20$this->colours = array("blue", "purple", "gray", "brown");
21$this->quotecolour = "blue";
22$this->blockcommentcolour = "green";
23$this->linecommentcolour = "green";
24
25// Indent Strings
26
27$this->indent = array();
28$this->unindent = array();
29
30// String characters and delimiters
31
32$this->stringchars = array("\"", "'");
33$this->delimiters = array("~", "@", "$", "%", "^", "&", "*", "(", ")", "+", "=", "|", "\\", "{", "}", ";", "\"", "'", "<", ">", " ", ",", " ", ".");
34$this->escchar = "";
35
36// Comment settings
37
38$this->linecommenton = array("");
39$this->blockcommenton = array("<!--");
40$this->blockcommentoff = array("-->");
41
42// Keywords (keyword mapping to colour number)
43
44$this->keywords = array(
45 "<a>" => "1",
46 "<a" => "1",
47 "</a>" => "1",
48 "<abbr>" => "1",
49 "<abbr" => "1",
50 "</abbr>" => "1",
51 "<acronym>" => "1",
52 "<acronym" => "1",
53 "</acronym>" => "1",
54 "<address>" => "1",
55 "<address" => "1",
56 "</address>" => "1",
57 "<area" => "1",
58 "<b>" => "1",
59 "<b" => "1",
60 "</b>" => "1",
61 "<bdo>" => "1",
62 "<bdo" => "1",
63 "</bdo>" => "1",
64 "<big>" => "1",
65 "<big" => "1",
66 "</big>" => "1",
67 "<blockquote>" => "1",
68 "<blockquote" => "1",
69 "</blockquote>" => "1",
70 "<body>" => "1",
71 "<body" => "1",
72 "</body>" => "1",
73 "<br" => "1",
74 "<button>" => "1",
75 "<button" => "1",
76 "</button>" => "1",
77 "<caption>" => "1",
78 "<caption" => "1",
79 "</caption>" => "1",
80 "<cite>" => "1",
81 "<cite" => "1",
82 "</cite>" => "1",
83 "<code>" => "1",
84 "<code" => "1",
85 "</code>" => "1",
86 "<col" => "1",
87 "<colgroup>" => "1",
88 "<colgroup" => "1",
89 "</colgroup>" => "1",
90 "<dd>" => "1",
91 "<dd" => "1",
92 "</dd>" => "1",
93 "<del>" => "1",
94 "<del" => "1",
95 "</del>" => "1",
96 "<dfn>" => "1",
97 "<dfn" => "1",
98 "</dfn>" => "1",
99 "<div>" => "1",
100 "<div" => "1",
101 "</div>" => "1",
102 "<dl>" => "1",
103 "<dl" => "1",
104 "</dl>" => "1",
105 "<dt>" => "1",
106 "<dt" => "1",
107 "</dt>" => "1",
108 "<em>" => "1",
109 "<em" => "1",
110 "</em>" => "1",
111 "<fieldset>" => "1",
112 "<fieldset" => "1",
113 "</fieldset>" => "1",
114 "<form>" => "1",
115 "<form" => "1",
116 "</form>" => "1",
117 "<h1>" => "1",
118 "<h1" => "1",
119 "</h1>" => "1",
120 "<h2>" => "1",
121 "<h2" => "1",
122 "</h2>" => "1",
123 "<h3>" => "1",
124 "<h3" => "1",
125 "</h3>" => "1",
126 "<h4>" => "1",
127 "<h4" => "1",
128 "</h4>" => "1",
129 "<h5>" => "1",
130 "<h5" => "1",
131 "</h5>" => "1",
132 "<h6>" => "1",
133 "<h6" => "1",
134 "</h6>" => "1",
135 "<head>" => "1",
136 "<head" => "1",
137 "</head>" => "1",
138 "<hr" => "1",
139 "<html>" => "1",
140 "<html" => "1",
141 "</html>" => "1",
142 "<i>" => "1",
143 "<i" => "1",
144 "</i>" => "1",
145 "<img" => "1",
146 "<input" => "1",
147 "<ins>" => "1",
148 "<ins" => "1",
149 "</ins>" => "1",
150 "<kbd>" => "1",
151 "<kbd" => "1",
152 "</kbd>" => "1",
153 "<label>" => "1",
154 "<label" => "1",
155 "</label>" => "1",
156 "<legend>" => "1",
157 "<legend" => "1",
158 "</legend>" => "1",
159 "<li>" => "1",
160 "<li" => "1",
161 "</li>" => "1",
162 "<link" => "1",
163 "<map>" => "1",
164 "<map" => "1",
165 "</map>" => "1",
166 "<meta" => "1",
167 "<object>" => "1",
168 "<object" => "1",
169 "</object>" => "1",
170 "<ol>" => "1",
171 "<ol" => "1",
172 "</ol>" => "1",
173 "<optgroup>" => "1",
174 "<optgroup" => "1",
175 "</optgroup>" => "1",
176 "<option>" => "1",
177 "<option" => "1",
178 "</option>" => "1",
179 "<p>" => "1",
180 "<p" => "1",
181 "</p>" => "1",
182 "<param" => "1",
183 "<pre>" => "1",
184 "<pre" => "1",
185 "</pre>" => "1",
186 "<q>" => "1",
187 "<q" => "1",
188 "</q>" => "1",
189 "<rb<" => "1",
190 "<rb" => "1",
191 "</rb>" => "1",
192 "<rbc>" => "1",
193 "<rbc" => "1",
194 "</rbc>" => "1",
195 "<rp>" => "1",
196 "<rp" => "1",
197 "</rp>" => "1",
198 "<rt>" => "1",
199 "<rt" => "1",
200 "</rt>" => "1",
201 "<rtc>" => "1",
202 "<rtc" => "1",
203 "</rtc>" => "1",
204 "<ruby>" => "1",
205 "<ruby" => "1",
206 "</ruby>" => "1",
207 "<samp>" => "1",
208 "<samp" => "1",
209 "</samp>" => "1",
210 "<script>" => "1",
211 "<script" => "1",
212 "</script>" => "1",
213 "<select>" => "1",
214 "<select" => "1",
215 "</select>" => "1",
216 "<small>" => "1",
217 "<small" => "1",
218 "</small>" => "1",
219 "<span>" => "1",
220 "<span" => "1",
221 "</span>" => "1",
222 "<strong>" => "1",
223 "<strong" => "1",
224 "</strong>" => "1",
225 "<style>" => "1",
226 "<style" => "1",
227 "</style>" => "1",
228 "<sub>" => "1",
229 "<sub" => "1",
230 "</sub>" => "1",
231 "<sup>" => "1",
232 "<sup" => "1",
233 "</sup>" => "1",
234 "<table>" => "1",
235 "<table" => "1",
236 "</table>" => "1",
237 "<tbody>" => "1",
238 "<tbody" => "1",
239 "</tbody>" => "1",
240 "<td>" => "1",
241 "<td" => "1",
242 "</td>" => "1",
243 "<textarea>" => "1",
244 "<textarea" => "1",
245 "</textarea>" => "1",
246 "<tfoot>" => "1",
247 "<tfoot" => "1",
248 "</tfoot>" => "1",
249 "<th>" => "1",
250 "<th" => "1",
251 "</th>" => "1",
252 "<thead>" => "1",
253 "<thead" => "1",
254 "</thead>" => "1",
255 "<title>" => "1",
256 "<title" => "1",
257 "</title>" => "1",
258 "<tr>" => "1",
259 "<tr" => "1",
260 "</tr>" => "1",
261 "<tt>" => "1",
262 "<tt" => "1",
263 "</tt>" => "1",
264 "<ul>" => "1",
265 "<ul" => "1",
266 "</ul>" => "1",
267 "<var>" => "1",
268 "<var" => "1",
269 "</var>" => "1",
270 "//" => "1",
271 "/>" => "1",
272 ">" => "1",
273 "abbr=" => "2",
274 "accept-charset=" => "2",
275 "accept=" => "2",
276 "accesskey=" => "2",
277 "action=" => "2",
278 "align=" => "2",
279 "alt=" => "2",
280 "archive=" => "2",
281 "axis=" => "2",
282 "border=" => "2",
283 "cellpadding=" => "2",
284 "cellspacing=" => "2",
285 "char=" => "2",
286 "charoff=" => "2",
287 "charset=" => "2",
288 "checked=" => "2",
289 "cite=" => "2",
290 "class=" => "2",
291 "code=" => "2",
292 "codebase=" => "2",
293 "colspan=" => "2",
294 "columns=" => "2",
295 "content=" => "2",
296 "coords=" => "2",
297 "datapagesize=" => "2",
298 "datetime=" => "2",
299 "defer=" => "2",
300 "dir=" => "2",
301 "disabled=" => "2",
302 "enctype=" => "2",
303 "frame=" => "2",
304 "headers=" => "2",
305 "height=" => "2",
306 "href=" => "2",
307 "hreflang=" => "2",
308 "http-equiv=" => "2",
309 "id=" => "2",
310 "ismap=" => "2",
311 "label=" => "2",
312 "longdesc=" => "2",
313 "maxlength=" => "2",
314 "media=" => "2",
315 "method=" => "2",
316 "multiple=" => "2",
317 "name=" => "2",
318 "nohref=" => "2",
319 "object=" => "2",
320 "onblur=" => "2",
321 "onchange=" => "2",
322 "onclick=" => "2",
323 "ondblclick=" => "2",
324 "onfocus=" => "2",
325 "onkeydown=" => "2",
326 "onkeypress=" => "2",
327 "onkeyup=" => "2",
328 "onload=" => "2",
329 "onmousedown=" => "2",
330 "onmousemove=" => "2",
331 "onmouseout=" => "2",
332 "onmouseover=" => "2",
333 "onmouseup=" => "2",
334 "onreset=" => "2",
335 "onselect=" => "2",
336 "onsubmit=" => "2",
337 "onunload=" => "2",
338 "profile=" => "2",
339 "rbspan=" => "2",
340 "readonly=" => "2",
341 "rel=" => "2",
342 "rev=" => "2",
343 "rows=" => "2",
344 "rowspan=" => "2",
345 "rules=" => "2",
346 "scheme=" => "2",
347 "scope=" => "2",
348 "selected=" => "2",
349 "shape=" => "2",
350 "size=" => "2",
351 "span=" => "2",
352 "src=" => "2",
353 "style=" => "2",
354 "summary=" => "2",
355 "tabindex=" => "2",
356 "title=" => "2",
357 "type=" => "2",
358 "usemap=" => "2",
359 "valign=" => "2",
360 "value=" => "2",
361 "valuetype=" => "2",
362 "version=" => "2",
363 "width=" => "2",
364 "xml:lang=" => "2",
365 "xmlns=" => "2",
366 "&;" => "3",
367 "<!DOCTYPE" => "4",
368 "<![CDATA[" => "4",
369 "<?phpxml" => "4",
370 "<?phpxml-stylesheet" => "4",
371 "?>" => "4",
372 "DTD" => "4",
373 "PUBLIC" => "4",
374 "SCHEMA" => "4",
375 "]]>" => "4");
376
377// Special extensions
378
379// Each category can specify a PHP function that returns an altered
380// version of the keyword.
381
382
383
384$this->linkscripts = array(
385 "1" => "donothing",
386 "2" => "donothing",
387 "3" => "donothing",
388 "4" => "donothing");
389}
390
391
392function donothing($keywordin)
393{
394 return $keywordin;
395}
396
397}?>
donothing($keywordin)
$BEAUT_PATH