ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_xhtmlbasic.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_xhtmlbasic extends HFile{
6  function HFile_xhtmlbasic(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // XHTML BASIC (Mobile Applications)
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  "<base" => "1",
58  "<blockquote>" => "1",
59  "<blockquote" => "1",
60  "</blockquote>" => "1",
61  "<body>" => "1",
62  "<body" => "1",
63  "</body>" => "1",
64  "<br" => "1",
65  "<caption>" => "1",
66  "<caption" => "1",
67  "</caption>" => "1",
68  "<cite>" => "1",
69  "<cite" => "1",
70  "</cite>" => "1",
71  "<code>" => "1",
72  "<code" => "1",
73  "</code>" => "1",
74  "<dd>" => "1",
75  "<dd" => "1",
76  "</dd>" => "1",
77  "<dfn>" => "1",
78  "<dfn" => "1",
79  "</dfn>" => "1",
80  "<div>" => "1",
81  "<div" => "1",
82  "</div>" => "1",
83  "<dl>" => "1",
84  "<dl" => "1",
85  "</dl>" => "1",
86  "<dt>" => "1",
87  "<dt" => "1",
88  "</dt>" => "1",
89  "<em>" => "1",
90  "<em" => "1",
91  "</em>" => "1",
92  "<form>" => "1",
93  "<form" => "1",
94  "</form>" => "1",
95  "<h1>" => "1",
96  "<h1" => "1",
97  "</h1>" => "1",
98  "<h2>" => "1",
99  "<h2" => "1",
100  "</h2>" => "1",
101  "<h3>" => "1",
102  "<h3" => "1",
103  "</h3>" => "1",
104  "<h4>" => "1",
105  "<h4" => "1",
106  "</h4>" => "1",
107  "<h5>" => "1",
108  "<h5" => "1",
109  "</h5>" => "1",
110  "<h6>" => "1",
111  "<h6" => "1",
112  "</h6>" => "1",
113  "<head>" => "1",
114  "<head" => "1",
115  "</head>" => "1",
116  "<html>" => "1",
117  "<html" => "1",
118  "</html>" => "1",
119  "<img" => "1",
120  "<input" => "1",
121  "<kbd>" => "1",
122  "<kbd" => "1",
123  "</kbd>" => "1",
124  "<label>" => "1",
125  "<label" => "1",
126  "</label>" => "1",
127  "<li>" => "1",
128  "<li" => "1",
129  "</li>" => "1",
130  "<link" => "1",
131  "<meta" => "1",
132  "<object>" => "1",
133  "<object" => "1",
134  "</object>" => "1",
135  "<ol>" => "1",
136  "<ol" => "1",
137  "</ol>" => "1",
138  "<option>" => "1",
139  "<option" => "1",
140  "</option>" => "1",
141  "<p>" => "1",
142  "<p" => "1",
143  "</p>" => "1",
144  "<param" => "1",
145  "<pre>" => "1",
146  "<pre" => "1",
147  "</pre>" => "1",
148  "<q>" => "1",
149  "<q" => "1",
150  "</q>" => "1",
151  "<samp>" => "1",
152  "<samp" => "1",
153  "</samp>" => "1",
154  "<select>" => "1",
155  "<select" => "1",
156  "</select>" => "1",
157  "<span>" => "1",
158  "<span" => "1",
159  "</span>" => "1",
160  "<strong>" => "1",
161  "<strong" => "1",
162  "</strong>" => "1",
163  "<table>" => "1",
164  "<table" => "1",
165  "</table>" => "1",
166  "<td>" => "1",
167  "<td" => "1",
168  "</td>" => "1",
169  "<textarea>" => "1",
170  "<textarea" => "1",
171  "</textarea>" => "1",
172  "<th>" => "1",
173  "<th" => "1",
174  "</th>" => "1",
175  "<title>" => "1",
176  "<title" => "1",
177  "</title>" => "1",
178  "<tr>" => "1",
179  "<tr" => "1",
180  "</tr>" => "1",
181  "<ul>" => "1",
182  "<ul" => "1",
183  "</ul>" => "1",
184  "<var>" => "1",
185  "<var" => "1",
186  "</var>" => "1",
187  "abbr=" => "2",
188  "accesskey=" => "2",
189  "action=" => "2",
190  "align=" => "2",
191  "alt=" => "2",
192  "archive=" => "2",
193  "axis=" => "2",
194  "charset=" => "2",
195  "checked=" => "2",
196  "cite=" => "2",
197  "class=" => "2",
198  "classid=" => "2",
199  "codebase=" => "2",
200  "codetype=" => "2",
201  "cols=" => "2",
202  "colspan=" => "2",
203  "content=" => "2",
204  "data=" => "2",
205  "declare=" => "2",
206  "enctype=" => "2",
207  "for=" => "2",
208  "headers=" => "2",
209  "height=" => "2",
210  "href=" => "2",
211  "hreflang=" => "2",
212  "http-equiv=" => "2",
213  "id=" => "2",
214  "longdesc=" => "2",
215  "maxlength=" => "2",
216  "media=" => "2",
217  "method=" => "2",
218  "multiple=" => "2",
219  "name=" => "2",
220  "onclick=" => "2",
221  "ondblclick=" => "2",
222  "onkeydown=" => "2",
223  "onkeypress=" => "2",
224  "onkeyup=" => "2",
225  "onmousedown=" => "2",
226  "onmousemove=" => "2",
227  "onmouseout=" => "2",
228  "onmouseover=" => "2",
229  "onmouseup=" => "2",
230  "rel=" => "2",
231  "rev=" => "2",
232  "rows=" => "2",
233  "rowspan=" => "2",
234  "scheme=" => "2",
235  "scope=" => "2",
236  "selected=" => "2",
237  "size=" => "2",
238  "src=" => "2",
239  "standby=" => "2",
240  "style=" => "2",
241  "summary=" => "2",
242  "tabindex=" => "2",
243  "title=" => "2",
244  "type=" => "2",
245  "valign=" => "2",
246  "value=" => "2",
247  "valuetype=" => "2",
248  "width=" => "2",
249  "xml:lang=" => "2",
250  "xml:space=" => "2",
251  "&;" => "3",
252  "<!DOCTYPE" => "4",
253  "<![CDATA[" => "4",
254  "<?phpxml" => "4",
255  "<?phpxml-stylesheet" => "4",
256  "?>" => "4",
257  "DTD" => "4",
258  "PUBLIC" => "4",
259  "SCHEMA" => "4",
260  "]]>" => "4");
261 
262 // Special extensions
263 
264 // Each category can specify a PHP function that returns an altered
265 // version of the keyword.
266 
267 
268 
269 $this->linkscripts = array(
270  "1" => "donothing",
271  "2" => "donothing",
272  "3" => "donothing",
273  "4" => "donothing");
274 }
275 
276 
277 function donothing($keywordin)
278 {
279  return $keywordin;
280 }
281 
282 }?>