ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_uniface71.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_uniface71 extends HFile
8 {
9 public function HFile_uniface71()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Uniface V7.1
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", "blue");
25 $this->quotecolour = "blue";
26 $this->blockcommentcolour = "green";
27 $this->linecommentcolour = "green";
28
29 // Indent Strings
30
31 $this->indent = array(")", "params");
32 $this->unindent = array("else", "end", "endif", "endparams", "endwhile");
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 "/Marker" => "",
50 "Characters" => "",
51 "\"$$<>\"" => "",
52 "activate" => "1",
53 "addmonths" => "1",
54 "apexit" => "1",
55 "apstart" => "1",
56 "askmess" => "1",
57 "blockdata" => "1",
58 "break" => "1",
59 "by" => "1",
60 "call" => "1",
61 "clear" => "1",
62 "close" => "1",
63 "clrmess" => "1",
64 "commit" => "1",
65 "compare" => "1",
66 "compute" => "1",
67 "creocc" => "1",
68 "curocc_video" => "1",
69 "debug" => "1",
70 "delete" => "1",
71 "delete_instance" => "1",
72 "delitem" => "1",
73 "discard" => "1",
74 "display" => "1",
75 "done" => "1",
76 "edit" => "1",
77 "eject" => "1",
78 "else" => "1",
79 "end" => "1",
80 "endif" => "1",
81 "endparams" => "1",
82 "endwhile" => "1",
83 "entry" => "1",
84 "erase" => "1",
85 "exit" => "1",
86 "field_syntax" => "1",
87 "field_video" => "1",
88 "filebox" => "1",
89 "filedump" => "1",
90 "file_dump" => "1",
91 "fileload" => "1",
92 "file_load" => "1",
93 "from" => "1",
94 "getitem" => "1",
95 "getlistitems" => "1",
96 "goto" => "1",
97 "help" => "1",
98 "if" => "1",
99 "length" => "1",
100 "lock" => "1",
101 "lookup" => "1",
102 "lowercase" => "1",
103 "macro" => "1",
104 "message" => "1",
105 "new_instance" => "1",
106 "nodebug" => "1",
107 "numgen" => "1",
108 "numset" => "1",
109 "open" => "1",
110 "operation" => "1",
111 "order" => "1",
112 "params" => "1",
113 "perform" => "1",
114 "postmessage" => "1",
115 "pragma" => "1",
116 "previous" => "1",
117 "print" => "1",
118 "print_break" => "1",
119 "pulldown" => "1",
120 "putitem" => "1",
121 "putlistitems" => "1",
122 "putmess" => "1",
123 "read" => "1",
124 "refresh" => "1",
125 "release" => "1",
126 "reload" => "1",
127 "remocc" => "1",
128 "repeat" => "1",
129 "reset" => "1",
130 "retrieve" => "1",
131 "return" => "1",
132 "rollback" => "1",
133 "run" => "1",
134 "scan" => "1",
135 "selectdb" => "1",
136 "sendmessage" => "1",
137 "set" => "1",
138 "setformfocus" => "1",
139 "setocc" => "1",
140 "skip" => "1",
141 "sort" => "1",
142 "spawn" => "1",
143 "sql" => "1",
144 "store" => "1",
145 "to" => "1",
146 "u_where" => "1",
147 "until" => "1",
148 "uppercase" => "1",
149 "using" => "1",
150 "webgen" => "1",
151 "webget" => "1",
152 "where" => "1",
153 "while" => "1",
154 "write" => "1",
155 "append" => "2",
156 "ask" => "2",
157 "async" => "2",
158 "attached" => "2",
159 "case" => "2",
160 "complete" => "2",
161 "desc" => "2",
162 "dump" => "2",
163 "e" => "2",
164 "error" => "2",
165 "field" => "2",
166 "global" => "2",
167 "hint" => "2",
168 "id" => "2",
169 "image" => "2",
170 "info" => "2",
171 "init" => "2",
172 "keyword" => "2",
173 "list" => "2",
174 "load" => "2",
175 "local" => "2",
176 "menu" => "2",
177 "mod" => "2",
178 "net" => "2",
179 "next" => "2",
180 "nobeep" => "2",
181 "noborder" => "2",
182 "nolock" => "2",
183 "noterm" => "2",
184 "nowander" => "2",
185 "o" => "2",
186 "occ" => "2",
187 "query" => "2",
188 "raw" => "2",
189 "save" => "2",
190 "sync" => "2",
191 "topic" => "2",
192 "truncate" => "2",
193 "v5profile" => "2",
194 "v6profile" => "2",
195 "warning" => "2",
196 "x" => "2",
197 ":a" => "2",
198 ":ascending" => "2",
199 ":d" => "2",
200 ":descending" => "2",
201 "$acterror" => "3",
202 "$applname" => "3",
203 "$batch" => "3",
204 "$char" => "3",
205 "$check" => "3",
206 "$clock" => "3",
207 "$componentname" => "3",
208 "$componenttype" => "3",
209 "$curline" => "3",
210 "$curocc" => "3",
211 "$currhits" => "3",
212 "$curword" => "3",
213 "$date" => "3",
214 "$datim" => "3",
215 "$dberror" => "3",
216 "$dbocc" => "3",
217 "$detachedinstances" => "3",
218 "$direction" => "3",
219 "$disable" => "3",
220 "$display" => "3",
221 "$empty" => "3",
222 "$entname" => "3",
223 "$error" => "3",
224 "$fieldcheck" => "3",
225 "$fieldendmod" => "3",
226 "$fieldindb" => "3",
227 "$fieldmod" => "3",
228 "$fieldname" => "3",
229 "$fieldprofile" => "3",
230 "$fieldproperties" => "3",
231 "$fieldvalrep" => "3",
232 "$foreign" => "3",
233 "$format" => "3",
234 "$formdb" => "3",
235 "$formdbmod" => "3",
236 "$formfocus" => "3",
237 "$formmod" => "3",
238 "$formmodality" => "3",
239 "$formname" => "3",
240 "$formtitle" => "3",
241 "$framedepth" => "3",
242 "$gui" => "3",
243 "$hide" => "3",
244 "$hits" => "3",
245 "$instancechildren" => "3",
246 "$instancedb" => "3",
247 "$instancedbmod" => "3",
248 "$instancemod" => "3",
249 "$instancename" => "3",
250 "$instanceparent" => "3",
251 "$ioprint" => "3",
252 "$keyboard" => "3",
253 "$language" => "3",
254 "$lines" => "3",
255 "$logical" => "3",
256 "$msgdata" => "3",
257 "$msgdst" => "3",
258 "$msgid" => "3",
259 "$msgsrc" => "3",
260 "$next" => "3",
261 "$nmforms" => "3",
262 "$number" => "3",
263 "$occcheck" => "3",
264 "$occdel" => "3",
265 "$occdepth" => "3",
266 "$occmod" => "3",
267 "$oprsys" => "3",
268 "$outer" => "3",
269 "$page" => "3",
270 "$paintedocc" => "3",
271 "$password" => "3",
272 "$previous" => "3",
273 "$printing" => "3",
274 "$prompt" => "3",
275 "$properties" => "3",
276 "$putmess" => "3",
277 "$relation" => "3",
278 "$result" => "3",
279 "$rettype" => "3",
280 "$runmode" => "3",
281 "$selblk" => "3",
282 "$status" => "3",
283 "$storetype" => "3",
284 "$syntax" => "3",
285 "$text" => "3",
286 "$time" => "3",
287 "$totdbocc" => "3",
288 "$totlines" => "3",
289 "$totocc" => "3",
290 "$user" => "3",
291 "$valrep" => "3",
292 "$variation" => "3",
293 "$web" => "3",
294 "(" => "5",
295 ")" => "5",
296 "[" => "5",
297 "]" => "5",
298 "+" => "5",
299 "-" => "5",
300 "*" => "5",
301 "/" => "5",
302 "=" => "5",
303 ";" => "5",
304 "%" => "5",
305 "&" => "5",
306 ">" => "5",
307 "<" => "5",
308 "^" => "5",
309 "!" => "5",
310 "|" => "5",
311 "\\" => "5",
312 "." => "5",
313 "," => "5",
314 "$" => "5",
315 "$$" => "5",
316 "<>" => "5");
317
318 // Special extensions
319
320 // Each category can specify a PHP function that returns an altered
321 // version of the keyword.
322
323
324
325 $this->linkscripts = array(
326 "" => "donothing",
327 "1" => "donothing",
328 "2" => "donothing",
329 "3" => "donothing",
330 "5" => "donothing");
331 }
332
333
334 public function donothing($keywordin)
335 {
336 return $keywordin;
337 }
338 }
$BEAUT_PATH
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)