ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_wap.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3if (!isset($BEAUT_PATH)) {
4 return;
5}
6require_once("$BEAUT_PATH/Beautifier/HFile.php");
7 class HFile_wap extends HFile
8 {
9 public function HFile_wap()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // WAP
15 /*************************************/
16 // Flags
17
18 $this->nocase = "1";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22 // Colours
23
24 $this->colours = array("blue", "purple", "gray", "brown");
25 $this->quotecolour = "blue";
26 $this->blockcommentcolour = "green";
27 $this->linecommentcolour = "green";
28
29 // Indent Strings
30
31 $this->indent = array();
32 $this->unindent = array();
33
34 // String characters and delimiters
35
36 $this->stringchars = array();
37 $this->delimiters = array("~", "!", "@", "$", "%", "^", "&", "*", "(", ")", "+", "=", "|", "\\", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
38 $this->escchar = "";
39
40 // Comment settings
41
42 $this->linecommenton = array("");
43 $this->blockcommenton = array("<!--");
44 $this->blockcommentoff = array("-->");
45
46 // Keywords (keyword mapping to colour number)
47
48 $this->keywords = array(
49 "=" => "1",
50 "<" => "1",
51 ">" => "1",
52 "<a>" => "1",
53 "<a" => "1",
54 "<access>" => "1",
55 "<access" => "1",
56 "<anchor>" => "1",
57 "<anchor" => "1",
58 "<b>" => "1",
59 "<big>" => "1",
60 "<br/>" => "1",
61 "<card>" => "1",
62 "<card" => "1",
63 "<do>" => "1",
64 "<do" => "1",
65 "<em>" => "1",
66 "<fieldset>" => "1",
67 "<fieldset" => "1",
68 "<go" => "1",
69 "<head>" => "1",
70 "<i>" => "1",
71 "<img" => "1",
72 "<input" => "1",
73 "<meta" => "1",
74 "<noop/>" => "1",
75 "<option>" => "1",
76 "<option" => "1",
77 "<optgroup>" => "1",
78 "<optgroup" => "1",
79 "<onevent" => "1",
80 "<p>" => "1",
81 "<p" => "1",
82 "<prev>" => "1",
83 "<prev/>" => "1",
84 "<postfield>" => "1",
85 "<postfield" => "1",
86 "<refresh>" => "1",
87 "<select" => "1",
88 "<setvar" => "1",
89 "<small>" => "1",
90 "<strong>" => "1",
91 "<table>" => "1",
92 "<table" => "1",
93 "<td>" => "1",
94 "<td" => "1",
95 "<template>" => "1",
96 "<template" => "1",
97 "<tr>" => "1",
98 "<tr" => "1",
99 "<timer>" => "1",
100 "<timer" => "1",
101 "<u>" => "1",
102 "<wml>" => "1",
103 "</a>" => "2",
104 "</access>" => "2",
105 "</anchor>" => "2",
106 "</b>" => "2",
107 "</big>" => "2",
108 "</card>" => "2",
109 "</do>" => "2",
110 "</em>" => "2",
111 "</fieldset>" => "2",
112 "</go>" => "2",
113 "</head>" => "2",
114 "</i>" => "2",
115 "</img>" => "2",
116 "</input>" => "2",
117 "</meta>" => "2",
118 "</option>" => "2",
119 "</optgroup>" => "2",
120 "</onevent>" => "2",
121 "</p>" => "2",
122 "</prev>" => "2",
123 "</postfield>" => "2",
124 "</refresh>" => "2",
125 "</select>" => "2",
126 "</setvar>" => "2",
127 "</small>" => "2",
128 "</strong>" => "2",
129 "</table>" => "2",
130 "</td>" => "2",
131 "</template>" => "2",
132 "</tr>" => "2",
133 "</timer>" => "2",
134 "</u>" => "2",
135 "</wml>" => "2",
136 "'" => "3",
137 "\"" => "3",
138 "accept-charset=" => "3",
139 "align=" => "3",
140 "alt=" => "3",
141 "columns=" => "3",
142 "content=" => "3",
143 "domain=" => "3",
144 "emptyok=" => "3",
145 "format=" => "3",
146 "forua=" => "3",
147 "height=" => "3",
148 "href=" => "3",
149 "hspace=" => "3",
150 "http-equiv=" => "3",
151 "id=" => "3",
152 "iname=" => "3",
153 "ivalue=" => "3",
154 "label=" => "3",
155 "localsrc=" => "3",
156 "maxlength=" => "3",
157 "method=" => "3",
158 "mode=" => "3",
159 "multiple=" => "3",
160 "name=" => "3",
161 "nextcontext=" => "3",
162 "onpick=" => "3",
163 "optional=" => "3",
164 "ontimer=" => "3",
165 "ordered=" => "3",
166 "path=" => "3",
167 "sendreferer=" => "3",
168 "src=" => "3",
169 "title=" => "3",
170 "type=" => "3",
171 "value=" => "3",
172 "vspace=" => "3",
173 "width=" => "3",
174 "xml:lang=" => "3",
175 "accept" => "4",
176 "action" => "4",
177 "bottom" => "4",
178 "Cache-Control" => "4",
179 "center" => "4",
180 "delete" => "4",
181 "false" => "4",
182 "get" => "4",
183 "left" => "4",
184 "max-age" => "4",
185 "nowrap" => "4",
186 "onenterforward" => "4",
187 "onenterbackward" => "4",
188 "onpick" => "4",
189 "ontimer" => "4",
190 "options" => "4",
191 "passwd" => "4",
192 "password" => "4",
193 "prevpost" => "4",
194 "right" => "4",
195 "text" => "4",
196 "timer" => "4",
197 "true" => "4",
198 "wrap" => "4");
199
200 // Special extensions
201
202 // Each category can specify a PHP function that returns an altered
203 // version of the keyword.
204
205
206
207 $this->linkscripts = array(
208 "1" => "donothing",
209 "2" => "donothing",
210 "3" => "donothing",
211 "4" => "donothing");
212 }
213
214
215 public function donothing($keywordin)
216 {
217 return $keywordin;
218 }
219 }
$BEAUT_PATH
Definition: HFile_wap.php:2
An exception for terminatinating execution or to throw for unit testing.
HFile_wap()
Definition: HFile_wap.php:9
donothing($keywordin)
Definition: HFile_wap.php:215