ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_opl.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_opl extends HFile
8  {
9  public function HFile_opl()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // OPL
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple");
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("rem");
43  $this->blockcommenton = array("");
44  $this->blockcommentoff = array("");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "abs" => "1",
50  "acos" => "1",
51  "addr" => "1",
52  "adjustalloc" => "1",
53  "alert" => "1",
54  "alloc" => "1",
55  "and" => "1",
56  "app" => "1",
57  "append" => "1",
58  "asc" => "1",
59  "asin" => "1",
60  "at" => "1",
61  "atan" => "1",
62  "back" => "1",
63  "beep" => "1",
64  "begintrans" => "1",
65  "bookmark" => "1",
66  "break" => "1",
67  "busy" => "1",
68  "cancel" => "1",
69  "caption" => "1",
70  "chr$" => "1",
71  "clearflags" => "1",
72  "cls" => "1",
73  "close" => "1",
74  "cmd$" => "1",
75  "committrans" => "1",
76  "compact" => "1",
77  "compress" => "1",
78  "const" => "1",
79  "continue" => "1",
80  "copy" => "1",
81  "count" => "1",
82  "cos" => "1",
83  "create" => "1",
84  "cursor" => "1",
85  "daystodate" => "1",
86  "datetosecs" => "1",
87  "datim$" => "1",
88  "day" => "1",
89  "dayname$" => "1",
90  "days" => "1",
91  "dButtons" => "1",
92  "dCheckbox" => "1",
93  "dChoice" => "1",
94  "dDate" => "1",
95  "declare" => "1",
96  "dEdit" => "1",
97  "dEditmulti" => "1",
98  "defaultwin" => "1",
99  "deg" => "1",
100  "delete" => "1",
101  "dFile" => "1",
102  "dFloat" => "1",
103  "dialog" => "1",
104  "dInit" => "1",
105  "dir$" => "1",
106  "dLong" => "1",
107  "do" => "1",
108  "dow" => "1",
109  "dPosition" => "1",
110  "dText" => "1",
111  "dTime" => "1",
112  "dXinput" => "1",
113  "else" => "1",
114  "elseif" => "1",
115  "enda" => "1",
116  "endif" => "1",
117  "endv" => "1",
118  "endp" => "1",
119  "endwh" => "1",
120  "eof" => "1",
121  "erase" => "1",
122  "err" => "1",
123  "err$" => "1",
124  "errx$" => "1",
125  "escape" => "1",
126  "eval" => "1",
127  "exist" => "1",
128  "exp" => "1",
129  "ext" => "1",
130  "external" => "1",
131  "find" => "1",
132  "findfield" => "1",
133  "first" => "1",
134  "fix$" => "1",
135  "flags" => "1",
136  "flt" => "1",
137  "font" => "1",
138  "freealloc" => "1",
139  "gAt" => "1",
140  "gBorder" => "1",
141  "gBox" => "1",
142  "gButton" => "1",
143  "gCircle" => "1",
144  "gClock" => "1",
145  "gClose" => "1",
146  "gCls" => "1",
147  "gColor" => "1",
148  "gCopy" => "1",
149  "gCreate" => "1",
150  "gCreatebit" => "1",
151  "gEllipse" => "1",
152  "gen$" => "1",
153  "get" => "1",
154  "get$" => "1",
155  "getcmd$" => "1",
156  "getdoc$" => "1",
157  "getevent" => "1",
158  "getevent32" => "1",
159  "geteventa32" => "1",
160  "geteventc" => "1",
161  "gFill" => "1",
162  "gFont" => "1",
163  "gGmode" => "1",
164  "gGrey" => "1",
165  "gHeight" => "1",
166  "gIdentity" => "1",
167  "gInfo32" => "1",
168  "gInvert" => "1",
169  "giprint" => "1",
170  "gLoadbit" => "1",
171  "gLoadfont" => "1",
172  "gLineby" => "1",
173  "gLineto" => "1",
174  "global" => "1",
175  "gMove" => "1",
176  "gOrder" => "1",
177  "gOriginx" => "1",
178  "gOriginY" => "1",
179  "goto" => "1",
180  "gotomark" => "1",
181  "gPatt" => "1",
182  "gPeekline" => "1",
183  "gPoly" => "1",
184  "gPrint" => "1",
185  "gPrintb" => "1",
186  "gPrintclip" => "1",
187  "gRank" => "1",
188  "gSavebit" => "1",
189  "gScroll" => "1",
190  "gSetpenwidth" => "1",
191  "gSetwin" => "1",
192  "gStyle" => "1",
193  "gTmode" => "1",
194  "gTwidth" => "1",
195  "gUnloadfont" => "1",
196  "gUpdate" => "1",
197  "gUse" => "1",
198  "gVisible" => "1",
199  "gWidth" => "1",
200  "gX" => "1",
201  "gXborder" => "1",
202  "gXprint" => "1",
203  "gY" => "1",
204  "hex$" => "1",
205  "hour" => "1",
206  "iabs" => "1",
207  "icon" => "1",
208  "if" => "1",
209  "include" => "1",
210  "input" => "1",
211  "insert" => "1",
212  "int" => "1",
213  "intf" => "1",
214  "intrans" => "1",
215  "ioa" => "1",
216  "ioc" => "1",
217  "iocancel" => "1",
218  "ioopen" => "1",
219  "ioclose" => "1",
220  "ioread" => "1",
221  "ioseek" => "1",
222  "iosignal" => "1",
223  "iow" => "1",
224  "iowait" => "1",
225  "iowaitstat" => "1",
226  "iowaitstat32" => "1",
227  "iowrite" => "1",
228  "ioyield" => "1",
229  "key" => "1",
230  "keya" => "1",
231  "keyc" => "1",
232  "key$" => "1",
233  "killmark" => "1",
234  "kmod" => "1",
235  "last" => "1",
236  "lclose" => "1",
237  "left$" => "1",
238  "len" => "1",
239  "lenalloc" => "1",
240  "ln" => "1",
241  "loadm" => "1",
242  "loc" => "1",
243  "local" => "1",
244  "lock" => "1",
245  "log" => "1",
246  "lopen" => "1",
247  "lower$" => "1",
248  "lprint" => "1",
249  "max" => "1",
250  "mCard" => "1",
251  "mCasc" => "1",
252  "mean" => "1",
253  "menu" => "1",
254  "mid$" => "1",
255  "min" => "1",
256  "mInit" => "1",
257  "minute" => "1",
258  "mkdir" => "1",
259  "modify" => "1",
260  "month" => "1",
261  "month$" => "1",
262  "mPopup" => "1",
263  "next" => "1",
264  "not" => "1",
265  "num$" => "1",
266  "off" => "1",
267  "on" => "1",
268  "onerr" => "1",
269  "open" => "1",
270  "openr" => "1",
271  "or" => "1",
272  "parse$" => "1",
273  "path" => "1",
274  "pause" => "1",
275  "peek" => "1",
276  "pi" => "1",
277  "pointerfilter" => "1",
278  "poke" => "1",
279  "pos" => "1",
280  "position" => "1",
281  "print" => "1",
282  "proc" => "1",
283  "put" => "1",
284  "raise" => "1",
285  "rad" => "1",
286  "randomize" => "1",
287  "realloc" => "1",
288  "recsize" => "1",
289  "rename" => "1",
290  "rept$" => "1",
291  "return" => "1",
292  "right$" => "1",
293  "rmdir" => "1",
294  "rnd" => "1",
295  "rollback" => "1",
296  "sci$" => "1",
297  "screen" => "1",
298  "screeninfo" => "1",
299  "second" => "1",
300  "secstodate" => "1",
301  "setdoc" => "1",
302  "setflags" => "1",
303  "setpath" => "1",
304  "sin" => "1",
305  "space" => "1",
306  "sqr" => "1",
307  "std" => "1",
308  "stop" => "1",
309  "style" => "1",
310  "sum" => "1",
311  "tan" => "1",
312  "testevent" => "1",
313  "trap" => "1",
314  "type" => "1",
315  "uadd" => "1",
316  "unloadm" => "1",
317  "until" => "1",
318  "update" => "1",
319  "upper$" => "1",
320  "use" => "1",
321  "usub" => "1",
322  "val" => "1",
323  "var" => "1",
324  "vector" => "1",
325  "week" => "1",
326  "while" => "1",
327  "year" => "1",
328  "backlighton&" => "2",
329  "backupbatterystatus&" => "2",
330  "bitmapdisplaymode&" => "2",
331  "bitmapload&" => "2",
332  "bitmapunload" => "2",
333  "cancelcapturekey" => "2",
334  "capturekey&" => "2",
335  "checkuid$" => "2",
336  "claimpointergrab" => "2",
337  "createfiledialog$" => "2",
338  "DBaddfield" => "2",
339  "DBaddfieldtrunc" => "2",
340  "DBcreateindex" => "2",
341  "DBdeletekey" => "2",
342  "DBdropindex" => "2",
343  "DBgetfieldcount&" => "2",
344  "DBgetfieldname$" => "2",
345  "DBgetfieldtype&" => "2",
346  "DBisdamaged&" => "2",
347  "DBisunique&" => "2",
348  "DBmakeunique" => "2",
349  "DBnewkey&" => "2",
350  "DBrecover" => "2",
351  "DBsetcomparison" => "2",
352  "DTdatetimediff" => "2",
353  "DTday&" => "2",
354  "DTdaynoinweek&" => "2",
355  "DTdaysdiff&" => "2",
356  "DTdaysinmonth&" => "2",
357  "DTdeletedatetime" => "2",
358  "DThour&" => "2",
359  "DThoursdiff&" => "2",
360  "DTmicro&" => "2",
361  "DTmicrosdiff&" => "2",
362  "DTminute&" => "2",
363  "DTminutesdiff&" => "2",
364  "DTmonth&" => "2",
365  "DTmonthsdiff&" => "2",
366  "DTnewdatetime&" => "2",
367  "DTnow&" => "2",
368  "DTsecond&" => "2",
369  "DTsecondsdiff&" => "2",
370  "DTsetday&" => "2",
371  "DTsethometime" => "2",
372  "DTsethour&" => "2",
373  "DTsetmicro&" => "2",
374  "DTsetminute&" => "2",
375  "DTsetmonth&" => "2",
376  "DTsetsecond&" => "2",
377  "DTsetyear&" => "2",
378  "DTweeknoinyear&" => "2",
379  "DTyear&" => "2",
380  "DTyearsdiff&" => "2",
381  "displaytasklist" => "2",
382  "endtask&" => "2",
383  "false%" => "2",
384  "getfiletime" => "2",
385  "getnextwindowgroupname$" => "2",
386  "getnextwindowid&" => "2",
387  "getthreadidfromappuid&" => "2",
388  "getthreadidfromopendoc&" => "2",
389  "initialiseparaformat" => "2",
390  "insertbitmap" => "2",
391  "insertnewpara" => "2",
392  "insertscaledbitmap" => "2",
393  "insertspecialchar" => "2",
394  "insertstring" => "2",
395  "irdaconnecttoreceive" => "2",
396  "irdaconnecttosend&" => "2",
397  "irdadisconnect" => "2",
398  "irdaread$" => "2",
399  "irdareada" => "2",
400  "irdawaitfordisconnect" => "2",
401  "irdawrite" => "2",
402  "isbacklightpresent&" => "2",
403  "insystem&" => "2",
404  "ishidden&" => "2",
405  "isreadonly&" => "2",
406  "killcurrentprocess" => "2",
407  "killprocess" => "2",
408  "killtask&" => "2",
409  "LCclockformat&" => "2",
410  "LCcountrycode&" => "2",
411  "LCdecimalseparator$" => "2",
412  "LCsetclockformat" => "2",
413  "LCstartofweek&" => "2",
414  "LCthousandsseparator$" => "2",
415  "loadrsc&" => "2",
416  "logontothread" => "2",
417  "machinename$" => "2",
418  "machineuniqueid" => "2",
419  "mainbatterystatus&" => "2",
420  "maxdisplaycontrast&" => "2",
421  "mediatype&" => "2",
422  "mod&" => "2",
423  "openfiledialog$" => "2",
424  "pagesetupdialog" => "2",
425  "playsound" => "2",
426  "playsounda" => "2",
427  "printdialog" => "2",
428  "printerdoclength&" => "2",
429  "printpreviewdialog" => "2",
430  "printrangedialog" => "2",
431  "readrsc$" => "2",
432  "readrsclong&" => "2",
433  "removespecificcharformat" => "2",
434  "removespecificparaformat" => "2",
435  "resetautoswitchofftimer" => "2",
436  "resetprinting" => "2",
437  "runapp&" => "2",
438  "runexe&" => "2",
439  "saveasfiledialog$" => "2",
440  "sendbitmaptoprinter" => "2",
441  "sendbuffertoprinter" => "2",
442  "sendscaledbitmaptoprinter" => "2",
443  "sendnewparatoprinter" => "2",
444  "sendrichtexttoprinter" => "2",
445  "sendspecialchartoprinter" => "2",
446  "sendstringtoprinter" => "2",
447  "setactive" => "2",
448  "setautoswitchoffbehavior" => "2",
449  "setautoswitchofftime" => "2",
450  "setalignment" => "2",
451  "setbackground" => "2",
452  "setbackgroundbythread&" => "2",
453  "setbacklighton" => "2",
454  "setbacklightbehavior" => "2",
455  "setbacklightontime" => "2",
456  "setcomputemode" => "2",
457  "setdisplaycontrast" => "2",
458  "setfiletime" => "2",
459  "setfontheight" => "2",
460  "setfontname" => "2",
461  "setfontposition" => "2",
462  "setfontposture" => "2",
463  "setfontstrikethrough" => "2",
464  "setfontunderline" => "2",
465  "setfontweight" => "2",
466  "setforeground" => "2",
467  "setforegroundbythread&" => "2",
468  "setglobalcharformat" => "2",
469  "setglobalparaformat" => "2",
470  "sethiddenfile" => "2",
471  "setkeyclickenabled" => "2",
472  "setlocalparaformat" => "2",
473  "setpointercapture" => "2",
474  "setpointerclickenabled" => "2",
475  "setpointergrabon" => "2",
476  "setreadonly" => "2",
477  "setsounddriverenabled" => "2",
478  "setsoundenabled" => "2",
479  "setsystemfile" => "2",
480  "spriteappend" => "2",
481  "spritechange" => "2",
482  "spritedelete" => "2",
483  "spritecreate&" => "2",
484  "spritedraw" => "2",
485  "spritepos" => "2",
486  "spriteuse" => "2",
487  "stopsound&" => "2",
488  "switchoff" => "2",
489  "tbarbutt" => "2",
490  "tbarhide" => "2",
491  "tbarinit" => "2",
492  "tbarlatch" => "2",
493  "tbarlink" => "2",
494  "tbaroffer%" => "2",
495  "tbarsettitle" => "2",
496  "tbarshow" => "2",
497  "terminatecurrentprocess" => "2",
498  "terminateprocess" => "2",
499  "true%" => "2",
500  "unloadrsc" => "2",
501  "volumesize&" => "2",
502  "volumespacefree&" => "2",
503  "volumeuniqueid&" => "2",
504  "xo" => "2");
505 
506  // Special extensions
507 
508  // Each category can specify a PHP function that returns an altered
509  // version of the keyword.
510 
511 
512 
513  $this->linkscripts = array(
514  "1" => "donothing",
515  "2" => "donothing");
516  }
517 
518 
519  public function donothing($keywordin)
520  {
521  return $keywordin;
522  }
523  }
donothing($keywordin)
Definition: HFile_opl.php:519
HFile_opl()
Definition: HFile_opl.php:9
Create styles array
The data for the language used.
$BEAUT_PATH
Definition: HFile_opl.php:2
Definition: HFile.php:21