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