ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_express.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_express extends HFile{
6  function HFile_express(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Express
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", "purple");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("DO");
28 $this->unindent = array("DOEND");
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  "ABS" => "1",
46  "AGGINDEX" => "1",
47  "AGGMAP" => "1",
48  "AGGMAPINFO" => "1",
49  "AGGREGATE" => "1",
50  "ALLCOMPILE" => "1",
51  "ALLSTAT" => "1",
52  "ANTILOG" => "1",
53  "ANTILOG10" => "1",
54  "ANY" => "1",
55  "ARCCOS" => "1",
56  "ARCSIN" => "1",
57  "ARCTAN" => "1",
58  "ARGCOUNT" => "1",
59  "ARGFR" => "1",
60  "ARGS" => "1",
61  "AVERAGE" => "1",
62  "BACK" => "1",
63  "BADLINE" => "1",
64  "BEGINDATE" => "1",
65  "BLANK" => "1",
66  "BLANKSTRIP" => "1",
67  "BREAK" => "1",
68  "CACHE" => "1",
69  "CACHEHITS" => "1",
70  "CACHEMISSES" => "1",
71  "CACHETRIES" => "1",
72  "CALENDARWEEK" => "1",
73  "CALL" => "1",
74  "CALLTYPE" => "1",
75  "CATEGORIZE" => "1",
76  "CHANGECHARS" => "1",
77  "CHARLIST" => "1",
78  "CHARSET" => "1",
79  "CHDIR" => "1",
80  "CHDRIVE" => "1",
81  "CHGDFN" => "1",
82  "COLVAL" => "1",
83  "COLWIDTH" => "1",
84  "COMMAS" => "1",
85  "COMPILE" => "1",
86  "COMPILEMESSAGE" => "1",
87  "COMPILEWARN" => "1",
88  "COMQUERY" => "1",
89  "COMSET" => "1",
90  "COMUNIT" => "1",
91  "CONNECT" => "1",
92  "CONSIDER" => "1",
93  "CONTEXT" => "1",
94  "CONTINUE" => "1",
95  "CONVERT" => "1",
96  "COPYDFN" => "1",
97  "CORRELATION" => "1",
98  "COS" => "1",
99  "COSH" => "1",
100  "COUNT" => "1",
101  "CUMSUM" => "1",
102  "DATABASE" => "1",
103  "DATEFORMAT" => "1",
104  "DATEORDER" => "1",
105  "DAYABBRLEN" => "1",
106  "DAYNAMES" => "1",
107  "DAYOF" => "1",
108  "DBDESCRIBE" => "1",
109  "DBGOUTFILE" => "1",
110  "DBGSESSION" => "1",
111  "DBREPORT" => "1",
112  "DBWAITTIME" => "1",
113  "DDOF" => "1",
114  "DECIMALOVERFLOW" => "1",
115  "DECIMALS" => "1",
116  "DEFINE" => "1",
117  "DELETE" => "1",
118  "DEPRDECL" => "1",
119  "DEPRDECLSW" => "1",
120  "DEPRSL" => "1",
121  "DEPRSOYD" => "1",
122  "DESCRIBE" => "1",
123  "DIMENSION" => "1",
124  "DIR" => "1",
125  "DISCONNECT" => "1",
126  "DIVIDEBYZERO" => "1",
127  "DO" => "1",
128  "DOEND" => "1",
129  "DSECONDS" => "1",
130  "ECHOPROMPT" => "1",
131  "EIFBYTES" => "1",
132  "ELSE" => "1",
133  "ENDDATE" => "1",
134  "ENDOF" => "1",
135  "EPRODUCT" => "1",
136  "ERELEASE" => "1",
137  "ERRNAMES" => "1",
138  "ESCAPEBASE" => "1",
139  "EVERSION" => "1",
140  "EVERY" => "1",
141  "EXECBREAK" => "1",
142  "EXECSTART" => "1",
143  "EXECSTATUS" => "1",
144  "EXECUTE" => "1",
145  "EXECWAIT" => "1",
146  "EXISTS" => "1",
147  "EXPORT" => "1",
148  "EXPTRACE" => "1",
149  "EXTARGS" => "1",
150  "EXTCHARS" => "1",
151  "EXTCOLS" => "1",
152  "EXTLINES" => "1",
153  "FCCLOSE" => "1",
154  "FCEXEC" => "1",
155  "FCOPEN" => "1",
156  "FCQUERY" => "1",
157  "FCSET" => "1",
158  "FETCH" => "1",
159  "FILECLOSE" => "1",
160  "FILECOPY" => "1",
161  "FILEDELETE" => "1",
162  "FILEERROR" => "1",
163  "FILEGET" => "1",
164  "FILEMODEMASK" => "1",
165  "FILEMOVE" => "1",
166  "FILENEXT" => "1",
167  "FILEOPEN" => "1",
168  "FILEPAGE" => "1",
169  "FILEPUT" => "1",
170  "FILEQUERY" => "1",
171  "FILEREAD" => "1",
172  "FILESET" => "1",
173  "FILEVIEW" => "1",
174  "FILTERLINES" => "1",
175  "FINDCHARS" => "1",
176  "FINDLINES" => "1",
177  "FINTSCHED" => "1",
178  "FOR" => "1",
179  "FORECAST" => "1",
180  "FPMTSCHED" => "1",
181  "FULLDSC" => "1",
182  "GET" => "1",
183  "GOTO" => "1",
184  "GROWRATE" => "1",
185  "HEADING" => "1",
186  "HIDE" => "1",
187  "HIERCHECK" => "1",
188  "IF" => "1",
189  "IFCOPY" => "1",
190  "IMPORT" => "1",
191  "INCLUDE" => "1",
192  "INFILE" => "1",
193  "INFO" => "1",
194  "INLIST" => "1",
195  "INSCHARS" => "1",
196  "INSCOLS" => "1",
197  "INSLINES" => "1",
198  "INSTAT" => "1",
199  "INTPART" => "1",
200  "IRR" => "1",
201  "ISDATE" => "1",
202  "ISVALUE" => "1",
203  "JOINCHARS" => "1",
204  "JOINCOLS" => "1",
205  "JOINLINES" => "1",
206  "KEY" => "1",
207  "LAG" => "1",
208  "LAGABSPCT" => "1",
209  "LAGDIF" => "1",
210  "LAGPCT" => "1",
211  "LARGEST" => "1",
212  "LCOLWIDTH" => "1",
213  "LD" => "1",
214  "LEAD" => "1",
215  "LIKECASE" => "1",
216  "LIKENL" => "1",
217  "LIKEESCAPE" => "1",
218  "LIMIT" => "1",
219  "LINENUM" => "1",
220  "LINESLEFT" => "1",
221  "LISTBY" => "1",
222  "LISTFILES" => "1",
223  "LISTNAMES" => "1",
224  "LOAD" => "1",
225  "LOG" => "1",
226  "LOG10" => "1",
227  "LONGOBJNAMES" => "1",
228  "LOWCASE" => "1",
229  "LSIZE" => "1",
230  "MAINTAIN" => "1",
231  "MAKEDATE" => "1",
232  "MAX" => "1",
233  "MAXCHARS" => "1",
234  "MAXFETCH" => "1",
235  "MEDIAN" => "1",
236  "MIN" => "1",
237  "MKDIR" => "1",
238  "MMOF" => "1",
239  "MODDAMP" => "1",
240  "MODE" => "1",
241  "MODEL" => "1",
242  "MODERROR" => "1",
243  "MODGAMMA" => "1",
244  "MODINPUTORDER" => "1",
245  "MODMAXITERS" => "1",
246  "MODOVERFLOW" => "1",
247  "MODSIMULTYPE" => "1",
248  "MODTOLERANCE" => "1",
249  "MODTRACE" => "1",
250  "MONITOR" => "1",
251  "MONTHABBRLEN" => "1",
252  "MONTHNAMES" => "1",
253  "MOVE" => "1",
254  "MOVINGAVERAGE" => "1",
255  "MOVINGMAX" => "1",
256  "MOVINGMIN" => "1",
257  "MOVINGTOTAL" => "1",
258  "NAFILL" => "1",
259  "NAME" => "1",
260  "NAPAGEFREE" => "1",
261  "NASKIP" => "1",
262  "NASKIP2" => "1",
263  "NASPELL" => "1",
264  "NONE" => "1",
265  "NOPRINT" => "1",
266  "NORMAL" => "1",
267  "NOSPELL" => "1",
268  "NPV" => "1",
269  "NUMCHARS" => "1",
270  "NUMLINES" => "1",
271  "OBJ" => "1",
272  "OBJLIST" => "1",
273  "OBSCURE" => "1",
274  "OFF" => "1",
275  "OKFORLIMIT" => "1",
276  "ON" => "1",
277  "OUTFILE" => "1",
278  "OUTFILEUNIT" => "1",
279  "PAGE" => "1",
280  "PAGEPAUSE" => "1",
281  "PAGEPROMPT" => "1",
282  "PARENS" => "1",
283  "PARSE" => "1",
284  "PAUSE" => "1",
285  "PERCENTAGE" => "1",
286  "PERMIT" => "1",
287  "PERMITERROR" => "1",
288  "PERMITRESET" => "1",
289  "PGCACHEHITS" => "1",
290  "PGCACHEMISSES" => "1",
291  "POP" => "1",
292  "POPLEVEL" => "1",
293  "PROGRAM" => "1",
294  "PROPERTY" => "1",
295  "PUSH" => "1",
296  "PUSHLEVEL" => "1",
297  "QUAL" => "1",
298  "RANDOM" => "1",
299  "RANK" => "1",
300  "RECAP" => "1",
301  "RECNO" => "1",
302  "RECURSIVE" => "1",
303  "REDO" => "1",
304  "REEDIT" => "1",
305  "REGRESS" => "1",
306  "RELATION" => "1",
307  "REM" => "1",
308  "REMCHARS" => "1",
309  "REMCOLS" => "1",
310  "REMLINES" => "1",
311  "RENAME" => "1",
312  "REPLCHARS" => "1",
313  "REPLCOLS" => "1",
314  "REPLLINES" => "1",
315  "REPORT" => "1",
316  "RESERVED" => "1",
317  "RETRIEVE" => "1",
318  "RETURN" => "1",
319  "RMDIR" => "1",
320  "ROLLUP" => "1",
321  "ROOTOFNEGATIVE" => "1",
322  "ROUND" => "1",
323  "ROW" => "1",
324  "RPR" => "1",
325  "RUNTOTAL" => "1",
326  "SECONDS" => "1",
327  "SESSIONQUERY" => "1",
328  "SET" => "1",
329  "SHARESESSION" => "1",
330  "SHELL" => "1",
331  "SHOW" => "1",
332  "SHW" => "1",
333  "SIGNAL" => "1",
334  "SIN" => "1",
335  "SINH" => "1",
336  "SLEEP" => "1",
337  "SMALLEST" => "1",
338  "SMOOTH" => "1",
339  "SORT" => "1",
340  "SORTCOMPOSITE" => "1",
341  "SORTLINES" => "1",
342  "SPARSEINDEX" => "1",
343  "SQL" => "1",
344  "SQLBLOCKMAX" => "1",
345  "SQLMESSAGES" => "1",
346  "SQRT" => "1",
347  "STARTOF" => "1",
348  "STATALL" => "1",
349  "STATFIRST" => "1",
350  "STATLAST" => "1",
351  "STATLEN" => "1",
352  "STATLIST" => "1",
353  "STATMAX" => "1",
354  "STATMIN" => "1",
355  "STATRANK" => "1",
356  "STATUS" => "1",
357  "STATVAL" => "1",
358  "STDDEV" => "1",
359  "STDHDR" => "1",
360  "STRIP" => "1",
361  "SUBTOTAL" => "1",
362  "SWITCH" => "1",
363  "SYSINFO" => "1",
364  "SYSTEM" => "1",
365  "TALLY" => "1",
366  "TAN" => "1",
367  "TANH" => "1",
368  "TCONVERT" => "1",
369  "TEMPSTAT" => "1",
370  "TEXTFILL" => "1",
371  "THEN" => "1",
372  "THOUSANDSCHAR" => "1",
373  "THREADEXTCALL" => "1",
374  "TOD" => "1",
375  "TODAY" => "1",
376  "TOTAL" => "1",
377  "TRACE" => "1",
378  "TRACKPRG" => "1",
379  "TRANSLATE" => "1",
380  "TRANSPORT" => "1",
381  "TRAP" => "1",
382  "TRIGGERMAXDEPTH" => "1",
383  "TRIGGERSTOREOK" => "1",
384  "UNHIDE" => "1",
385  "UNIQUELINES" => "1",
386  "UNRAVEL" => "1",
387  "UPCASE" => "1",
388  "UPDATE" => "1",
389  "UPD" => "1",
390  "VALSPERPAGE" => "1",
391  "VALUES" => "1",
392  "VINTSCHED" => "1",
393  "VNF" => "1",
394  "VPMTSCHED" => "1",
395  "WATCH" => "1",
396  "WEEKDAYSNEWYEAR" => "1",
397  "WEEKOF" => "1",
398  "WHILE" => "1",
399  "WKSDATA" => "1",
400  "XABORT" => "1",
401  "XCAPORTNUMBER" => "1",
402  "XCLOSE" => "1",
403  "XOPEN" => "1",
404  "YESSPELL" => "1",
405  "YRABSTART" => "1",
406  "YYOF" => "1",
407  "ZEROROW" => "1",
408  "ZEROTOTAL" => "1",
409  "ZSPELL" => "1",
410  "ARG" => "3",
411  "ARGUMENT" => "3",
412  "BMARGIN" => "3",
413  "BOOL" => "3",
414  "BOOLEAN" => "3",
415  "DBEXTENDPATH" => "3",
416  "DBSEARCHPATH" => "3",
417  "DBTEMPPATH" => "3",
418  "DECIMALCHAR" => "3",
419  "EIFEXTENSIONPATH" => "3",
420  "EIFNAMES" => "3",
421  "EIFSHORTNAMES" => "3",
422  "EIFTYPES" => "3",
423  "EIFUPDBYTES" => "3",
424  "ERRORNAME" => "3",
425  "ERRORTEXT" => "3",
426  "INT" => "3",
427  "INTEGER" => "3",
428  "OKNULLSTATUS" => "3",
429  "PAGENUM" => "3",
430  "PAGEPRG" => "3",
431  "PAGESIZE" => "3",
432  "PAGING" => "3",
433  "PRGTRACE" => "3",
434  "SQLCODE" => "3",
435  "SQLERRM" => "3",
436  "TEXT" => "3",
437  "TMARGIN" => "3",
438  "VARIABLE" => "3",
439  "VRB" => "3",
440  "+" => "2",
441  "-" => "2",
442  "=" => "2",
443  "//" => "2",
444  "/" => "2",
445  "%" => "2",
446  "&" => "2",
447  "^" => "2",
448  "!" => "2",
449  "|" => "2",
450  ":" => "2",
451  "AND" => "2",
452  "EQ" => "2",
453  "GE" => "2",
454  "GT" => "2",
455  "LE" => "2",
456  "LT" => "2",
457  "NE" => "2",
458  "NOT" => "2",
459  "OR" => "2");
460 
461 // Special extensions
462 
463 // Each category can specify a PHP function that returns an altered
464 // version of the keyword.
465 
466 
467 
468 $this->linkscripts = array(
469  "1" => "donothing",
470  "3" => "donothing",
471  "2" => "donothing");
472 }
473 
474 
475 function donothing($keywordin)
476 {
477  return $keywordin;
478 }
479 
480 }?>