ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_caopenroad401.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_caopenroad401 extends HFile{
6  function HFile_caopenroad401(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // OpenROAD
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "gray", "brown");
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("");
39 $this->blockcommenton = array("/*");
40 $this->blockcommentoff = array("*/");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "abort" => "1",
46  "all" => "1",
47  "alter" => "1",
48  "any" => "1",
49  "as" => "1",
50  "asc" => "1",
51  "at" => "1",
52  "avg" => "1",
53  "begin" => "1",
54  "between" => "1",
55  "by" => "1",
56  "byref" => "1",
57  "call" => "1",
58  "callframe" => "1",
59  "callproc" => "1",
60  "case" => "1",
61  "clear" => "1",
62  "close" => "1",
63  "commit" => "1",
64  "committed" => "1",
65  "connect" => "1",
66  "continue" => "1",
67  "copy" => "1",
68  "count" => "1",
69  "create" => "1",
70  "current" => "1",
71  "dbevent" => "1",
72  "declare" => "1",
73  "default" => "1",
74  "delete" => "1",
75  "deleterow" => "1",
76  "desc" => "1",
77  "direct" => "1",
78  "disconnect" => "1",
79  "distinct" => "1",
80  "do" => "1",
81  "drop" => "1",
82  "else" => "1",
83  "elseif" => "1",
84  "end" => "1",
85  "endcase" => "1",
86  "enddeclare" => "1",
87  "endfor" => "1",
88  "endif" => "1",
89  "endloop" => "1",
90  "endwhile" => "1",
91  "escape" => "1",
92  "execute" => "1",
93  "exists" => "1",
94  "exit" => "1",
95  "extclassevent" => "1",
96  "fetch" => "1",
97  "field" => "1",
98  "for" => "1",
99  "from" => "1",
100  "gotoframe" => "1",
101  "grant" => "1",
102  "group" => "1",
103  "having" => "1",
104  "if" => "1",
105  "immediate" => "1",
106  "in" => "1",
107  "index" => "1",
108  "initialize" => "1",
109  "inquire_ingres" => "1",
110  "inquire_sql" => "1",
111  "insert" => "1",
112  "insertrow" => "1",
113  "installation" => "1",
114  "integrity" => "1",
115  "into" => "1",
116  "is" => "1",
117  "join" => "1",
118  "key" => "1",
119  "like" => "1",
120  "link" => "1",
121  "lockmode" => "1",
122  "max" => "1",
123  "message" => "1",
124  "min" => "1",
125  "mode" => "1",
126  "modify" => "1",
127  "next" => "1",
128  "nextcase" => "1",
129  "noecho" => "1",
130  "not" => "1",
131  "of" => "1",
132  "on" => "1",
133  "only" => "1",
134  "open" => "1",
135  "openframe" => "1",
136  "order" => "1",
137  "permit" => "1",
138  "procedure" => "1",
139  "prompt" => "1",
140  "qualification" => "1",
141  "raise" => "1",
142  "read" => "1",
143  "register" => "1",
144  "relocate" => "1",
145  "remove" => "1",
146  "repeat" => "1",
147  "repeatable" => "1",
148  "repeated" => "1",
149  "resume" => "1",
150  "return" => "1",
151  "revoke" => "1",
152  "role" => "1",
153  "rollback" => "1",
154  "row" => "1",
155  "rule" => "1",
156  "save" => "1",
157  "savepoint" => "1",
158  "select" => "1",
159  "serializable" => "1",
160  "set" => "1",
161  "sleep" => "1",
162  "some" => "1",
163  "sum" => "1",
164  "system" => "1",
165  "table" => "1",
166  "then" => "1",
167  "to" => "1",
168  "transaction" => "1",
169  "uncommitted" => "1",
170  "union" => "1",
171  "unique" => "1",
172  "until" => "1",
173  "update" => "1",
174  "values" => "1",
175  "view" => "1",
176  "where" => "1",
177  "while" => "1",
178  "with" => "1",
179  "work" => "1",
180  "write" => "1",
181  "AND" => "3",
182  "FALSE" => "3",
183  "NULL" => "3",
184  "OR" => "3",
185  "TRUE" => "3",
186  "BF_BMP" => "4",
187  "BF_GIF" => "4",
188  "BF_SUNRASTER" => "4",
189  "BF_TIFF" => "4",
190  "BF_XBM" => "4",
191  "BF_WINDOWCURSOR" => "4",
192  "BF_WINDOWICON" => "4",
193  "CC_BACKGROUND" => "4",
194  "CC_BLACK" => "4",
195  "CC_BLUE" => "4",
196  "CC_BROWN" => "4",
197  "CC_CYAN" => "4",
198  "CC_FOREGROUND" => "4",
199  "CC_GRAY" => "4",
200  "CC_GREEN" => "4",
201  "CC_LIGHT_BLUE" => "4",
202  "CC_LIGHT_BROWN" => "4",
203  "CC_LIGHT_CYAN" => "4",
204  "CC_LIGHT_GRAY" => "4",
205  "CC_LIGHT_GREEN" => "4",
206  "CC_LIGHT_ORANGE" => "4",
207  "CC_LIGHT_PINK" => "4",
208  "CC_LIGHT_PURPLE" => "4",
209  "CC_LIGHT_RED" => "4",
210  "CC_LIGHT_YELLOW" => "4",
211  "CC_MAGENTA" => "4",
212  "CC_ORANGE" => "4",
213  "CC_PALE_BLUE" => "4",
214  "CC_PALE_BROWN" => "4",
215  "CC_PALE_CYAN" => "4",
216  "CC_PALE_GRAY" => "4",
217  "CC_PALE_GREEN" => "4",
218  "CC_PALE_ORANGE" => "4",
219  "CC_PALE_PINK" => "4",
220  "CC_PALE_PURPLE" => "4",
221  "CC_PALE_RED" => "4",
222  "CC_PALE_YELLOW" => "4",
223  "CC_PINK" => "4",
224  "CC_PURPLE" => "4",
225  "CC_RED" => "4",
226  "CC_WHITE" => "4",
227  "CC_YELLOW" => "4",
228  "CC_DEFAULT_1" => "4",
229  "CC_DEFAULT_2" => "4",
230  "CC_DEFAULT_3" => "4",
231  "CC_DEFAULT_4" => "4",
232  "CC_DEFAULT_5" => "4",
233  "CC_DEFAULT_6" => "4",
234  "CC_DEFAULT_7" => "4",
235  "CC_DEFAULT_8" => "4",
236  "CC_DEFAULT_9" => "4",
237  "CC_DEFAULT_10" => "4",
238  "CC_DEFAULT_11" => "4",
239  "CC_DEFAULT_12" => "4",
240  "CC_DEFAULT_13" => "4",
241  "CC_DEFAULT_14" => "4",
242  "CC_DEFAULT_15" => "4",
243  "CC_DEFAULT_16" => "4",
244  "CC_DEFAULT_17" => "4",
245  "CC_DEFAULT_18" => "4",
246  "CC_DEFAULT_19" => "4",
247  "CC_DEFAULT_20" => "4",
248  "CC_DEFAULT_21" => "4",
249  "CC_DEFAULT_22" => "4",
250  "CC_DEFAULT_23" => "4",
251  "CC_DEFAULT_24" => "4",
252  "CC_DEFAULT_25" => "4",
253  "CC_DEFAULT_26" => "4",
254  "CC_DEFAULT_27" => "4",
255  "CC_DEFAULT_28" => "4",
256  "CC_DEFAULT_29" => "4",
257  "CC_DEFAULT_30" => "4",
258  "CC_SYS_ACTIVEBORDER" => "4",
259  "CC_SYS_ACTIVECAPTION" => "4",
260  "CC_SYS_APPWORKSPACE" => "4",
261  "CC_SYS_BACKGROUND" => "4",
262  "CC_SYS_BTNFACE" => "4",
263  "CC_SYS_BTNSHADOW" => "4",
264  "CC_SYS_BTNTEXT" => "4",
265  "CC_SYS_CAPTIONTEXT" => "4",
266  "CC_SYS_GRAYTEXT" => "4",
267  "CC_SYS_HIGHLIGHT" => "4",
268  "CC_SYS_HIGHLIGHTTEXT" => "4",
269  "CC_SYS_INACTIVEBORDER" => "4",
270  "CC_SYS_INACTIVECAPTION" => "4",
271  "CC_SYS_INACTIVECAPTIONTEXT" => "4",
272  "CC_SYS_MENU" => "4",
273  "CC_SYS_MENUTEXT" => "4",
274  "CC_SYS_SCROLLBAR" => "4",
275  "CC_SYS_SHADOW" => "4",
276  "CC_SYS_WINDOW" => "4",
277  "CC_SYS_WINDOWFRAME" => "4",
278  "CC_SYS_WINDOWTEXT" => "4",
279  "CL_INVALIDVALUE" => "4",
280  "CP_NONE" => "4",
281  "CP_BOTH" => "4",
282  "CP_ROWS" => "4",
283  "CP_COLUMNS" => "4",
284  "CS_CLOSED" => "4",
285  "CS_CURRENT" => "4",
286  "CS_OPEN" => "4",
287  "CS_OPEN_CACHED" => "4",
288  "CS_NOCURRENT" => "4",
289  "CS_NO_MORE_ROWS" => "4",
290  "DC_BW" => "4",
291  "DC_COLOR" => "4",
292  "DP_CLIP_IMAGE" => "4",
293  "DP_AUTOSIZE_FIELD" => "4",
294  "DP_SCALE_IMAGE_HW" => "4",
295  "DP_SCALE_IMAGE_H" => "4",
296  "DP_SCALE_IMAGE_W" => "4",
297  "DS_CONNECTED" => "4",
298  "DS_DISABLED" => "4",
299  "DS_DISCONNECTED" => "4",
300  "DS_INGRES_DBMS" => "4",
301  "DS_INGRESDSK_DBMS" => "4",
302  "DS_NO_DBMS" => "4",
303  "DS_ORACLE_DBMS" => "4",
304  "DS_SQLSERVER_DBMS" => "4",
305  "DV_NULL" => "4",
306  "DV_STRING" => "4",
307  "DV_SYSTEM" => "4",
308  "EH_NEXT_HANDLER" => "4",
309  "EH_RESUME" => "4",
310  "EH_RETRY" => "4",
311  "ER_OK" => "4",
312  "ER_FAIL" => "4",
313  "ER_USER1" => "4",
314  "ER_USER2" => "4",
315  "ER_USER3" => "4",
316  "ER_USER4" => "4",
317  "ER_USER5" => "4",
318  "ER_USER6" => "4",
319  "ER_USER7" => "4",
320  "ER_USER8" => "4",
321  "ER_USER9" => "4",
322  "ER_USER10" => "4",
323  "ER_OUTOFRANGE" => "4",
324  "ER_ROWNOTFOUND" => "4",
325  "ER_NAMEEXISTS" => "4",
326  "EP_NONE" => "4",
327  "EP_INTERACTIVE" => "4",
328  "EP_OUTPUT" => "4",
329  "FA_BOTTOMCENTER" => "4",
330  "FA_BOTTOMLEFT" => "4",
331  "FA_BOTTOMRIGHT" => "4",
332  "FA_CENTER" => "4",
333  "FA_CENTERLEFT" => "4",
334  "FA_CENTERRIGHT" => "4",
335  "FA_DEFAULT" => "4",
336  "FA_NONE" => "4",
337  "FA_TOPCENTER" => "4",
338  "FA_TOPLEFT" => "4",
339  "FA_TOPRIGHT" => "4",
340  "FB_CHANGEABLE" => "4",
341  "FB_CLICKPOINT" => "4",
342  "FB_DIMMED" => "4",
343  "FB_DRAGBOX" => "4",
344  "FB_DRAGSEGMENT" => "4",
345  "FB_FLEXIBLE" => "4",
346  "FB_INVISIBLE" => "4",
347  "FB_LANDABLE" => "4",
348  "FB_MARKABLE" => "4",
349  "FB_MOVEABLE" => "4",
350  "FB_RESIZEABLE" => "4",
351  "FB_VISIBLE" => "4",
352  "FC_LOWER" => "4",
353  "FC_NONE" => "4",
354  "FC_UPPER" => "4",
355  "FM_QUERY" => "4",
356  "FM_READ" => "4",
357  "FM_UPDATE" => "4",
358  "FM_USER1" => "4",
359  "FM_USER2" => "4",
360  "FM_USER3" => "4",
361  "FO_DEFAULT" => "4",
362  "FO_VERTICAL" => "4",
363  "FO_HORIZONTAL" => "4",
364  "FP_BITMAP" => "4",
365  "FP_CLEAR" => "4",
366  "FP_CROSSHATCH" => "4",
367  "FP_DARKSHADE" => "4",
368  "FP_DEFAULT" => "4",
369  "FP_HORIZONTAL" => "4",
370  "FP_LIGHTSHADE" => "4",
371  "FP_SHADE" => "4",
372  "FP_SOLID" => "4",
373  "FP_VERTICAL" => "4",
374  "FT_NOSETVALUE" => "4",
375  "FT_SETVALUE" => "4",
376  "FT_TABTO" => "4",
377  "FT_TAKEFOCUS" => "4",
378  "GF_BOTTOM" => "4",
379  "GF_DEFAULT" => "4",
380  "GF_LEFT" => "4",
381  "GF_RIGHT" => "4",
382  "GF_TOP" => "4",
383  "GW_NO_DBMS" => "4",
384  "GW_INFORMIX_DBMS" => "4",
385  "HC_DOUBLEQUOTE" => "4",
386  "HC_QUOTE" => "4",
387  "HC_SPACE" => "4",
388  "HC_FORMFEED" => "4",
389  "HC_NEWLINE" => "4",
390  "HC_TAB" => "4",
391  "HV_CONTENTS" => "4",
392  "HV_CONTEXT" => "4",
393  "HV_HELPONHELP" => "4",
394  "HV_KEY" => "4",
395  "HV_QUIT" => "4",
396  "LS_DASH" => "4",
397  "LS_DASHDOT" => "4",
398  "LS_DASHDOTDOT" => "4",
399  "LS_DEFAULT" => "4",
400  "LS_DOT" => "4",
401  "LS_SOLID" => "4",
402  "LS_3D" => "4",
403  "LW_DEFAULT" => "4",
404  "LW_MAXIMUM" => "4",
405  "LW_MIDDLE" => "4",
406  "LW_MINIMUM" => "4",
407  "LW_NOLINE" => "4",
408  "LW_THICK" => "4",
409  "LW_THIN" => "4",
410  "LW_VERYTHICK" => "4",
411  "LW_VERYTHIN" => "4",
412  "LW_EXTRATHIN" => "4",
413  "MB_DISABLED" => "4",
414  "MB_ENABLED" => "4",
415  "MB_INVISIBLE" => "4",
416  "MT_ERROR" => "4",
417  "MT_NONE" => "4",
418  "MT_INFO" => "4",
419  "MT_WARNING" => "4",
420  "OP_APPEND" => "4",
421  "OP_NONE" => "4",
422  "OS_DEFAULT" => "4",
423  "OS_SHADOW" => "4",
424  "OS_SOLID" => "4",
425  "OS_3D" => "4",
426  "PU_CANCEL" => "4",
427  "PU_OK" => "4",
428  "QS_ACTIVE" => "4",
429  "QS_INACTIVE" => "4",
430  "QS_SETCOL" => "4",
431  "QY_ARRAY" => "4",
432  "QY_CACHE" => "4",
433  "QY_CURSOR" => "4",
434  "QY_DIRECT" => "4",
435  "RC_CHILDSELECTED" => "4",
436  "RC_DOWN" => "4",
437  "RC_END" => "4",
438  "RC_FIELDFREED" => "4",
439  "RC_FIELDORPHANED" => "4",
440  "RC_GROUPSELECT" => "4",
441  "RC_HOME" => "4",
442  "RC_LEFT" => "4",
443  "RC_MODECHANGED" => "4",
444  "RC_MOUSECLICK" => "4",
445  "RC_MOUSEDRAG" => "4",
446  "RC_NEXT" => "4",
447  "RC_NOTAPPLICABLE" => "4",
448  "RC_PAGEDOWN" => "4",
449  "RC_PAGEUP" => "4",
450  "RC_PARENTSELECTED" => "4",
451  "RC_PREVIOUS" => "4",
452  "RC_PROGRAM" => "4",
453  "RC_RESUME" => "4",
454  "RC_RETURN" => "4",
455  "RC_RIGHT" => "4",
456  "RC_ROWDELETED" => "4",
457  "RC_ROWINSERTED" => "4",
458  "RC_ROWSALLDELETED" => "4",
459  "RC_SELECT" => "4",
460  "RC_TFSCROLL" => "4",
461  "RC_TOGGLESELECT" => "4",
462  "RC_UP" => "4",
463  "RS_CHANGED" => "4",
464  "RS_DELETED" => "4",
465  "RS_NEW" => "4",
466  "RS_UNCHANGED" => "4",
467  "RS_UNDEFINED" => "4",
468  "SK_CLOSE" => "4",
469  "SK_COPY" => "4",
470  "SK_CUT" => "4",
471  "SK_DELETE" => "4",
472  "SK_DETAILS" => "4",
473  "SK_DUPLICATE" => "4",
474  "SK_FIND" => "4",
475  "SK_GO" => "4",
476  "SK_HELP" => "4",
477  "SK_NEXT" => "4",
478  "SK_NONE" => "4",
479  "SK_PASTE" => "4",
480  "SK_PROPS" => "4",
481  "SK_QUIT" => "4",
482  "SK_REDO" => "4",
483  "SK_SAVE" => "4",
484  "SK_TFDELETEALLROWS" => "4",
485  "SK_TFDELETEROW" => "4",
486  "SK_TFFIND" => "4",
487  "SK_TFINSERTROW" => "4",
488  "SK_UNDO" => "4",
489  "SP_APPSTARTING" => "4",
490  "SP_ARROW" => "4",
491  "SP_CROSS" => "4",
492  "SP_IBEAM" => "4",
493  "SP_ICON" => "4",
494  "SP_NO" => "4",
495  "SP_SIZE" => "4",
496  "SP_SIZENESW" => "4",
497  "SP_SIZENS" => "4",
498  "SP_SIZENWSE" => "4",
499  "SP_SIZEWE" => "4",
500  "SP_UPARROW" => "4",
501  "SP_WAIT" => "4",
502  "SY_NT" => "4",
503  "SY_UNIX" => "4",
504  "SY_VMS" => "4",
505  "SY_OS2" => "4",
506  "SY_MSDOS" => "4",
507  "SY_WIN95" => "4",
508  "TF_COURIER" => "4",
509  "TF_HELVETICA" => "4",
510  "TF_LUCIDA" => "4",
511  "TF_MENUDEFAULT" => "4",
512  "TF_NEWCENTURY" => "4",
513  "TF_SYSTEM" => "4",
514  "TF_TIMESROMAN" => "4",
515  "UE_DATAERROR" => "4",
516  "UE_EXITED" => "4",
517  "UE_NOTACTIVE" => "4",
518  "UE_PURGED" => "4",
519  "UE_RESUMED" => "4",
520  "UE_UNKNOWN" => "4",
521  "WI_MOTIF" => "4",
522  "WI_MSWIN32" => "4",
523  "WI_MSWINDOWS" => "4",
524  "WI_NONE" => "4",
525  "WI_PM" => "4",
526  "WP_FLOATING" => "4",
527  "WP_INTERACTIVE" => "4",
528  "WP_PARENTCENTERED" => "4",
529  "WP_PARENTRELATIVE" => "4",
530  "WP_SCREENCENTERED" => "4",
531  "WP_SCREENRELATIVE" => "4",
532  "WV_ICON" => "4",
533  "WV_INVISIBLE" => "4",
534  "WV_UNREALIZED" => "4",
535  "WV_VISIBLE" => "4");
536 
537 // Special extensions
538 
539 // Each category can specify a PHP function that returns an altered
540 // version of the keyword.
541 
542 
543 
544 $this->linkscripts = array(
545  "1" => "donothing",
546  "3" => "donothing",
547  "4" => "donothing");
548 }
549 
550 
551 function donothing($keywordin)
552 {
553  return $keywordin;
554 }
555 
556 }?>