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