ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_flagship.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_flagship extends HFile
8 {
9 public function HFile_flagship()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // FlagShip/Clipper
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", "brown", "gray", "purple", "blue");
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 "accept" => "1",
50 "access" => "1",
51 "all" => "1",
52 "alternate" => "1",
53 "announce" => "1",
54 "append" => "1",
55 "as" => "1",
56 "assign" => "1",
57 "autolock" => "1",
58 "average" => "1",
59 "begin" => "1",
60 "bell" => "1",
61 "blank" => "1",
62 "box" => "1",
63 "break" => "4",
64 "call" => "1",
65 "cancel" => "1",
66 "case" => "1",
67 "century" => "1",
68 "class" => "1",
69 "clear" => "1",
70 "close" => "1",
71 "cls" => "1",
72 "color" => "1",
73 "commit" => "1",
74 "confirm" => "1",
75 "console" => "1",
76 "continue" => "1",
77 "copy" => "1",
78 "count" => "1",
79 "create" => "1",
80 "cursor" => "1",
81 "do" => "1",
82 "decimals" => "1",
83 "declare" => "1",
84 "default" => "1",
85 "delete" => "1",
86 "deleted" => "3",
87 "delimiters" => "1",
88 "device" => "1",
89 "dir" => "1",
90 "directory" => "3",
91 "display" => "1",
92 "elseif" => "1",
93 "endif" => "1",
94 "enddo" => "1",
95 "else" => "1",
96 "eject" => "1",
97 "end" => "1",
98 "epoch" => "1",
99 "erase" => "1",
100 "escape" => "1",
101 "eval" => "3",
102 "exact" => "1",
103 "exclusive" => "1",
104 "exit" => "1",
105 "export" => "1",
106 "extern" => "1",
107 "external" => "1",
108 "field" => "3",
109 "filter" => "1",
110 "find" => "1",
111 "fixed" => "1",
112 "for" => "1",
113 "form" => "1",
114 "format" => "1",
115 "from" => "1",
116 "function" => "1",
117 "get" => "1",
118 "gets" => "1",
119 "global" => "1",
120 "go" => "1",
121 "goto" => "1",
122 "hidden" => "1",
123 "if" => "1",
124 "index" => "1",
125 "init" => "1",
126 "input" => "1",
127 "instance" => "1",
128 "intensity" => "1",
129 "join" => "1",
130 "key" => "1",
131 "keyboard" => "1",
132 "label" => "1",
133 "list" => "1",
134 "local" => "1",
135 "locate" => "1",
136 "loop" => "1",
137 "margin" => "1",
138 "memory" => "3",
139 "memvar" => "1",
140 "menu" => "1",
141 "message" => "1",
142 "method" => "1",
143 "multilocks" => "1",
144 "next" => "1",
145 "note" => "1",
146 "order" => "1",
147 "otherwise" => "1",
148 "pack" => "1",
149 "parameters" => "1",
150 "path" => "1",
151 "printer" => "1",
152 "private" => "1",
153 "procedure" => "1",
154 "prompt" => "1",
155 "protect" => "1",
156 "prototype" => "1",
157 "public" => "1",
158 "quit" => "1",
159 "read" => "1",
160 "recall" => "1",
161 "recover" => "1",
162 "refresh" => "1",
163 "reindex" => "1",
164 "relation" => "1",
165 "release" => "1",
166 "rename" => "1",
167 "replace" => "1",
168 "report" => "1",
169 "request" => "1",
170 "restore" => "1",
171 "return" => "1",
172 "run" => "1",
173 "save" => "1",
174 "say" => "1",
175 "scoreboard" => "1",
176 "screen" => "1",
177 "seek" => "1",
178 "select" => "3",
179 "sequence" => "1",
180 "set" => "3",
181 "setenhanced" => "1",
182 "setstandard" => "1",
183 "setunselect" => "1",
184 "shared" => "1",
185 "skip" => "1",
186 "softseek" => "1",
187 "sort" => "1",
188 "static" => "1",
189 "store" => "1",
190 "structure" => "1",
191 "sum" => "1",
192 "text" => "1",
193 "to" => "1",
194 "total" => "1",
195 "type" => "3",
196 "typeahead" => "1",
197 "unique" => "1",
198 "unlock" => "1",
199 "update" => "1",
200 "use" => "1",
201 "wait" => "1",
202 "while" => "1",
203 "with" => "1",
204 "wrap" => "1",
205 "zap" => "1",
206 "?" => "2",
207 "??" => "2",
208 "@" => "2",
209 "!" => "2",
210 "%" => "2",
211 "&" => "2",
212 "(" => "2",
213 ")" => "2",
214 "*" => "2",
215 "+" => "2",
216 "," => "2",
217 "-" => "2",
218 ":" => "2",
219 ";" => "2",
220 "<" => "2",
221 "=" => "2",
222 ">" => "2",
223 "[" => "2",
224 "\\" => "2",
225 "]" => "2",
226 "^" => "2",
227 "{" => "2",
228 "|" => "2",
229 "}" => "2",
230 "~" => "2",
231 "__accept" => "3",
232 "__dbpack" => "3",
233 "__dbzap" => "3",
234 "__eject" => "3",
235 "__keyboard" => "3",
236 "__killread" => "3",
237 "__mclear" => "3",
238 "__menuto" => "3",
239 "__quit" => "3",
240 "__setcentury" => "3",
241 "__setformat" => "3",
242 "__setfunction" => "3",
243 "__wait" => "3",
244 "__xrestscreen" => "3",
245 "__xsavescreen" => "3",
246 "_fsget_" => "3",
247 "aadd" => "3",
248 "abs" => "3",
249 "achoice" => "3",
250 "aclone" => "3",
251 "acopy" => "3",
252 "adel" => "3",
253 "adir" => "3",
254 "aeval" => "3",
255 "afields" => "3",
256 "afill" => "3",
257 "ains" => "3",
258 "alert" => "3",
259 "alias" => "3",
260 "alltrim" => "3",
261 "altd" => "3",
262 "array" => "3",
263 "asc" => "3",
264 "ascan" => "3",
265 "asize" => "3",
266 "asort" => "3",
267 "at" => "3",
268 "atail" => "3",
269 "autoflock" => "3",
270 "autorlock" => "3",
271 "autounlock" => "3",
272 "bin2i" => "3",
273 "bin2l" => "3",
274 "bin2w" => "3",
275 "bof" => "3",
276 "browse" => "3",
277 "cdow" => "3",
278 "chr" => "3",
279 "chr2screen" => "3",
280 "cmonth" => "3",
281 "col" => "3",
282 "ctod" => "3",
283 "curdir" => "3",
284 "date" => "3",
285 "day" => "3",
286 "dbappend" => "3",
287 "dbclearfil" => "3",
288 "dbclearind" => "3",
289 "dbclearrel" => "3",
290 "dbcloseall" => "3",
291 "dbclosearea" => "3",
292 "dbcommit" => "3",
293 "dbcommitall" => "3",
294 "dbcreate" => "3",
295 "dbcreateind" => "3",
296 "dbdelete" => "3",
297 "dbedit" => "3",
298 "dbeval" => "3",
299 "dbf" => "3",
300 "dbfilter" => "3",
301 "dbgetlocat" => "3",
302 "dbgobottom" => "3",
303 "dbgoto" => "3",
304 "dbgotop" => "3",
305 "dbobjec" => "3",
306 "dbrecall" => "3",
307 "dbreindex" => "3",
308 "dbrelation" => "3",
309 "dbrlocklis" => "3",
310 "dbrselect" => "3",
311 "dbrunloc" => "3",
312 "dbseek" => "3",
313 "dbselectar" => "3",
314 "dbsetdriver" => "3",
315 "dbsetfilter" => "3",
316 "dbsetindex" => "3",
317 "dbsetlocat" => "3",
318 "dbsetorder" => "3",
319 "dbsetrelat" => "3",
320 "dbskip" => "3",
321 "dbstruct" => "3",
322 "dbunlock" => "3",
323 "dbunlockall" => "3",
324 "dbusearea" => "3",
325 "descend" => "3",
326 "devout" => "3",
327 "devoutpict" => "3",
328 "devpos" => "3",
329 "diskspace" => "3",
330 "dispbegin" => "3",
331 "dispbox" => "3",
332 "dispcount" => "3",
333 "dispend" => "3",
334 "dispout" => "3",
335 "doserror" => "3",
336 "dow" => "3",
337 "dtoc" => "3",
338 "dtos" => "3",
339 "empty" => "3",
340 "eof" => "3",
341 "errorblock" => "3",
342 "errorlevel" => "3",
343 "execname" => "3",
344 "execpidnum" => "3",
345 "exp" => "3",
346 "fattrib" => "3",
347 "fclose" => "3",
348 "fcount" => "3",
349 "fcreate" => "3",
350 "ferase" => "3",
351 "ferror" => "3",
352 "fieldblock" => "3",
353 "fielddeci" => "3",
354 "fieldget" => "3",
355 "fieldgetarr" => "3",
356 "fieldlen" => "3",
357 "fieldname" => "3",
358 "fieldpos" => "3",
359 "fieldput" => "3",
360 "fieldputarr" => "3",
361 "fieldtype" => "3",
362 "fieldwblock" => "3",
363 "file" => "3",
364 "fklabel" => "3",
365 "fkmax" => "3",
366 "flock" => "3",
367 "flockf" => "3",
368 "fopen" => "3",
369 "found" => "3",
370 "fread" => "3",
371 "freadstr" => "3",
372 "freadtxt" => "3",
373 "frename" => "3",
374 "fs_set" => "3",
375 "fseek" => "3",
376 "fwrite" => "3",
377 "getactive" => "3",
378 "getapplyke" => "3",
379 "getdosetke" => "3",
380 "getenv" => "3",
381 "getpostval" => "3",
382 "getprevali" => "3",
383 "getreader" => "3",
384 "hardcr" => "3",
385 "header" => "3",
386 "i2bin" => "3",
387 "iif" => "3",
388 "indexcheck" => "3",
389 "indexcount" => "3",
390 "indexdbf" => "3",
391 "indexext" => "3",
392 "indexkey" => "3",
393 "indexnames" => "3",
394 "indexord" => "3",
395 "inkey" => "3",
396 "int" => "3",
397 "isalpha" => "3",
398 "isbegseq" => "3",
399 "iscolor" => "3",
400 "isdbexcl" => "3",
401 "isdbflock" => "3",
402 "isdbrlock" => "3",
403 "isdigit" => "3",
404 "isfunction" => "3",
405 "islower" => "3",
406 "isobjclass" => "3",
407 "isobjproper" => "3",
408 "isprinter" => "3",
409 "isupper" => "3",
410 "l2bin" => "3",
411 "lastkey" => "3",
412 "lastrec" => "3",
413 "left" => "3",
414 "len" => "3",
415 "lock" => "3",
416 "log" => "3",
417 "lower" => "4",
418 "ltrim" => "3",
419 "lupdate" => "3",
420 "max" => "3",
421 "max_col" => "3",
422 "max_row" => "3",
423 "maxcol" => "3",
424 "maxrow" => "3",
425 "memoedit" => "3",
426 "memoline" => "3",
427 "memoread" => "3",
428 "memotran" => "3",
429 "memowrit" => "3",
430 "memvarblock" => "3",
431 "min" => "3",
432 "mlcount" => "3",
433 "mlctopos" => "3",
434 "mlpos" => "3",
435 "mod" => "3",
436 "month" => "3",
437 "mpostolc" => "3",
438 "neterr" => "3",
439 "netname" => "3",
440 "nextkey" => "3",
441 "nosnow" => "3",
442 "num2int" => "3",
443 "os" => "3",
444 "outerr" => "3",
445 "outstd" => "3",
446 "padc" => "3",
447 "padl" => "3",
448 "padr" => "3",
449 "pcalls" => "3",
450 "pcol" => "3",
451 "pcount" => "3",
452 "procfile" => "3",
453 "procline" => "3",
454 "procname" => "3",
455 "prow" => "3",
456 "qout" => "3",
457 "qqout" => "3",
458 "rangecheck" => "3",
459 "rat" => "3",
460 "rddlist" => "3",
461 "rddsetdefa" => "3",
462 "readexit" => "3",
463 "readinsert" => "3",
464 "readkey" => "3",
465 "readmodal" => "3",
466 "readvar" => "3",
467 "reccount" => "3",
468 "recno" => "3",
469 "recsize" => "3",
470 "replicate" => "3",
471 "restscreen" => "3",
472 "right" => "3",
473 "rlock" => "3",
474 "round" => "3",
475 "row" => "3",
476 "rtrim" => "3",
477 "savescreen" => "3",
478 "scrdos2unix" => "3",
479 "screen2chr" => "3",
480 "scroll" => "3",
481 "scrunix2dos" => "3",
482 "seconds" => "3",
483 "secondscpu" => "3",
484 "setblink" => "3",
485 "setcancel" => "3",
486 "setcol2get" => "3",
487 "setcolor" => "3",
488 "setcursor" => "3",
489 "setkey" => "3",
490 "setmode" => "3",
491 "setpos" => "3",
492 "setprc" => "3",
493 "soundex" => "3",
494 "space" => "3",
495 "sqrt" => "3",
496 "str" => "3",
497 "strpeek" => "3",
498 "strpoke" => "3",
499 "strtran" => "3",
500 "strzero" => "3",
501 "stuff" => "3",
502 "substr" => "3",
503 "tempfilenam" => "3",
504 "time" => "3",
505 "tone" => "3",
506 "transform" => "3",
507 "trim" => "3",
508 "truepath" => "3",
509 "updated" => "3",
510 "upper" => "4",
511 "used" => "3",
512 "usersactiv" => "3",
513 "usersdbf" => "3",
514 "usersmax" => "3",
515 "val" => "3",
516 "valtype" => "3",
517 "version" => "3",
518 "word" => "3",
519 "year" => "3",
520 "debug" => "4",
521 "deve" => "4",
522 "escdelay" => "4",
523 "inmap" => "4",
524 "intvar" => "4",
525 "loadl" => "4",
526 "memcom" => "4",
527 "outmap" => "4",
528 "pathdeli" => "4",
529 "pathlow" => "4",
530 "pathupp" => "4",
531 "print" => "4",
532 "setlang" => "4",
533 "shortnam" => "4",
534 "term" => "4",
535 "transl" => "4",
536 "typeah" => "4",
537 "zerobyte" => "4",
538 "on" => "5",
539 "off" => "5",
540 "or" => "5",
541 "and" => "5",
542 "not" => "5");
543
544 // Special extensions
545
546 // Each category can specify a PHP function that returns an altered
547 // version of the keyword.
548
549
550
551 $this->linkscripts = array(
552 "1" => "donothing",
553 "4" => "donothing",
554 "3" => "donothing",
555 "2" => "donothing",
556 "5" => "donothing");
557 }
558
559
560 public function donothing($keywordin)
561 {
562 return $keywordin;
563 }
564 }
$BEAUT_PATH
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)