ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_focus.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_focus extends HFile{
6  function HFile_focus(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // FOCUS
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", "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  "A" => "1",
46  "ABS" => "1",
47  "ACCESS" => "1",
48  "ACROSS" => "1",
49  "ADD" => "1",
50  "AFTER" => "1",
51  "AGAIN" => "1",
52  "ALL" => "1",
53  "ANALYSE" => "1",
54  "AND" => "1",
55  "ANOVA" => "1",
56  "AS" => "1",
57  "ASNAMES" => "1",
58  "ASQ" => "1",
59  "AVE" => "1",
60  "B" => "1",
61  "BACK" => "1",
62  "BIN" => "1",
63  "BINS" => "1",
64  "BY" => "1",
65  "C1" => "1",
66  "C2" => "1",
67  "C3" => "1",
68  "CASE" => "1",
69  "CDN" => "1",
70  "CHANGE" => "1",
71  "CHECK" => "1",
72  "CLEAR" => "1",
73  "CNT" => "1",
74  "CO" => "1",
75  "COLUMN" => "1",
76  "COLUMNS" => "1",
77  "COLUMN-TOTAL" => "1",
78  "COMBINE" => "1",
79  "COMPILE" => "1",
80  "COMPUTE" => "1",
81  "CONTAINS" => "1",
82  "CONTINUE" => "1",
83  "CORRE" => "1",
84  "COUNT" => "1",
85  "CREATE" => "1",
86  "CRTFORM" => "1",
87  "CT" => "1",
88  "DBA" => "1",
89  "DECODE" => "1",
90  "DECRYPT" => "1",
91  "DEFINE" => "1",
92  "DEL" => "1",
93  "DELETE" => "1",
94  "DIS" => "1",
95  "DISK" => "1",
96  "DISPLAY" => "1",
97  "DMTY" => "1",
98  "DMY" => "1",
99  "DMYY" => "1",
100  "DUPL" => "1",
101  "ECHO" => "1",
102  "EDIT" => "1",
103  "ELSE" => "1",
104  "ENCRYPT" => "1",
105  "END" => "1",
106  "ENDCASE" => "1",
107  "ENDREPEAT" => "1",
108  "EO1" => "1",
109  "EO2" => "1",
110  "EO3" => "1",
111  "EQ" => "1",
112  "EX" => "1",
113  "EXCEEDS" => "1",
114  "EXCLUDES" => "1",
115  "EXEC" => "1",
116  "EXIT" => "1",
117  "EXITREPEAT" => "1",
118  "EXPLAIN" => "1",
119  "EXSMO" => "1",
120  "FACTO" => "1",
121  "FI" => "1",
122  "FILE" => "1",
123  "FIN" => "1",
124  "FINISH" => "1",
125  "FIXFORM" => "1",
126  "FML" => "1",
127  "FOCUS" => "1",
128  "FOOTING" => "1",
129  "FOR" => "1",
130  "FORM" => "1",
131  "FORMAT" => "1",
132  "FREEFORM" => "1",
133  "FROM" => "1",
134  "FST" => "1",
135  "GE" => "1",
136  "GOTO" => "1",
137  "GRAPH" => "1",
138  "GT" => "1",
139  "GTREND" => "1",
140  "HEADING" => "1",
141  "HIST" => "1",
142  "HOLD" => "1",
143  "I" => "1",
144  "IF" => "1",
145  "IN" => "1",
146  "INCLUDE" => "1",
147  "INCLUDES" => "1",
148  "INDEX" => "1",
149  "INIT" => "1",
150  "INPUT" => "1",
151  "INT" => "1",
152  "INTO" => "1",
153  "INVALID" => "1",
154  "IS" => "1",
155  "IS-LESS-THAN" => "1",
156  "IS-MORE-THAN" => "1",
157  "IS-NOT" => "1",
158  "JOIN" => "1",
159  "JUMP" => "1",
160  "LAST" => "1",
161  "LE" => "1",
162  "LET" => "1",
163  "LINES" => "1",
164  "LINK" => "1",
165  "LIST" => "1",
166  "LOC" => "1",
167  "LOCATE" => "1",
168  "LOCATION" => "1",
169  "LOG" => "1",
170  "LST" => "1",
171  "LT" => "1",
172  "MAINTAIN" => "1",
173  "MARK" => "1",
174  "MATCH" => "1",
175  "MATCH/NOMATCH" => "1",
176  "MAX" => "1",
177  "MDISC" => "1",
178  "MDY" => "1",
179  "MDYY" => "1",
180  "MIN" => "1",
181  "MISSING" => "1",
182  "MODIFY" => "1",
183  "MOVE" => "1",
184  "MSG" => "1",
185  "MT" => "1",
186  "MTDY" => "1",
187  "MULTR" => "1",
188  "N" => "1",
189  "NE" => "1",
190  "NEW" => "1",
191  "NEW-OR-OLD" => "1",
192  "NEW-NOR-OLD" => "1",
193  "NEW-NOT-OLD" => "1",
194  "NEXT" => "1",
195  "NOMATCH" => "1",
196  "NOPRINT" => "1",
197  "NOR" => "1",
198  "NOT" => "1",
199  "NOTOTAL" => "1",
200  "OFF" => "1",
201  "OFFLINE" => "1",
202  "OLD" => "1",
203  "OLD-OR-NEW" => "1",
204  "OLD-NOT-NEW" => "1",
205  "OLD-NOR-NEW" => "1",
206  "OM" => "1",
207  "OMITS" => "1",
208  "ON" => "1",
209  "ONLINE" => "1",
210  "OR" => "1",
211  "OVER" => "1",
212  "PAGE" => "1",
213  "PAGE-BREAK" => "1",
214  "PANEL" => "1",
215  "PASS" => "1",
216  "PAUSE" => "1",
217  "PCT" => "1",
218  "PERFORM" => "1",
219  "PICKUP" => "1",
220  "PIE" => "1",
221  "POLRG" => "1",
222  "POST" => "1",
223  "PRINT" => "1",
224  "PROMPT" => "1",
225  "QUIT" => "1",
226  "RANKED" => "1",
227  "READLIMIT" => "1",
228  "REBUILD" => "1",
229  "RECAP" => "1",
230  "RECOMPUTE" => "1",
231  "RECORDLIMIT" => "1",
232  "RECTYP" => "1",
233  "RECTYPE" => "1",
234  "REORG" => "1",
235  "REPEAT" => "1",
236  "REPLACE" => "1",
237  "REPLOT" => "1",
238  "RESTRICT" => "1",
239  "RETYPE" => "1",
240  "ROW" => "1",
241  "ROWS" => "1",
242  "ROW-TOTAL" => "1",
243  "RPCT" => "1",
244  "RUN" => "1",
245  "SAVB" => "1",
246  "SAVE" => "1",
247  "SCAN" => "1",
248  "SEG" => "1",
249  "SEGMENT" => "1",
250  "SEGNAME" => "1",
251  "SET" => "1",
252  "SHOW" => "1",
253  "SKIP-LINE" => "1",
254  "SQRT" => "1",
255  "ST" => "1",
256  "STATSET" => "1",
257  "STOR" => "1",
258  "STORE" => "1",
259  "SUBFOOT" => "1",
260  "SUBHEAD" => "1",
261  "SUBTOTAL" => "1",
262  "SUB-TOTAL" => "1",
263  "SUM" => "1",
264  "SUMMARIZE" => "1",
265  "SUPPRINT" => "1",
266  "TABLE" => "1",
267  "TABLEF" => "1",
268  "TED" => "1",
269  "TEMP" => "1",
270  "THEN" => "1",
271  "TLOCATE" => "1",
272  "TO" => "1",
273  "TOP" => "1",
274  "TOT" => "1",
275  "TOTAL" => "1",
276  "TRACE" => "1",
277  "TYPE" => "1",
278  "UNDERLINE" => "1",
279  "UP" => "1",
280  "UPDATE" => "1",
281  "USAGE" => "1",
282  "USE" => "1",
283  "USER" => "1",
284  "VALIDATE" => "1",
285  "WITH" => "1",
286  "WITHIN" => "1",
287  "WRITE" => "1",
288  "X1" => "1",
289  "X2" => "1",
290  "X3" => "1",
291  "XFER" => "1",
292  "Y" => "1",
293  "YMD" => "1",
294  "YMTD" => "1",
295  "YYMD" => "1",
296  "&ACCEPTS" => "2",
297  "&BASEIO" => "2",
298  "&CHNGD" => "2",
299  "&CURSOR" => "2",
300  "&DATE" => "2",
301  "&ECHO" => "2",
302  "&FOCCPU" => "2",
303  "&FOCDISORG" => "2",
304  "&FOCERRNUM" => "2",
305  "&FOCEXTTRM" => "2",
306  "&FOCFIELDNAME" => "2",
307  "&FOCFOCEXEC" => "2",
308  "&FOCINCLUDE" => "2",
309  "&FOCMODE" => "2",
310  "&FOCPRINT" => "2",
311  "&FOCPUTLVL" => "2",
312  "&FOCQUALCHAR" => "2",
313  "&FOCREL" => "2",
314  "&FOCSBORDER" => "2",
315  "&FOCSYSTYP" => "2",
316  "&FOCTMPDSK" => "2",
317  "&FOCTRMSD" => "2",
318  "&FOCTRMSW" => "2",
319  "&FORTRMTYP" => "2",
320  "&FOCTTIME" => "2",
321  "&FOCVTIME" => "2",
322  "&FORMAT" => "2",
323  "&HIPERFOCUS" => "2",
324  "&INPUT" => "2",
325  "&INVALID" => "2",
326  "&IORETURN" => "2",
327  "&LINES" => "2",
328  "&MDY" => "2",
329  "&MDYY" => "2",
330  "&NOMATCH" => "2",
331  "&PFKEY" => "2",
332  "&QUIT" => "2",
333  "&READS" => "2",
334  "&RECORDS" => "2",
335  "&REJECTS" => "2",
336  "&RETCODE" => "2",
337  "&STACK" => "2",
338  "&TOD" => "2",
339  "&TRANS" => "2",
340  "&WINDOWNAME" => "2",
341  "&WINDOWVALUE" => "2",
342  "&YMD" => "2",
343  "&YYMD" => "2",
344  "-CMS" => "3",
345  "-CLOSE" => "3",
346  "-CRTCLEAR" => "3",
347  "-CRTFORM" => "3",
348  "-DEFAULTS" => "3",
349  "-EXIT" => "3",
350  "-GOTO" => "3",
351  "-IF" => "3",
352  "-INCLUDE" => "3",
353  "-MVS" => "3",
354  "-PASS" => "3",
355  "-PROMPT" => "3",
356  "-QUIT" => "3",
357  "-READ" => "3",
358  "-REPEAT" => "3",
359  "-RUN" => "3",
360  "-SET" => "3",
361  "-TSO" => "3",
362  "-TYPE" => "3",
363  "-WINDOW" => "3",
364  "-WRITE" => "3",
365  "-?" => "3",
366  "TSO" => "3",
367  "MVS" => "3",
368  "CMS" => "3",
369  "**" => "4",
370  "/A" => "4",
371  "/D" => "4",
372  "/F" => "4",
373  "/I" => "4",
374  "//" => "4",
375  "/DMY" => "4",
376  "/DMYY" => "4",
377  "/MDY" => "4",
378  "/MDYY" => "4",
379  "/YMD" => "4",
380  "/YYMD" => "4");
381 
382 // Special extensions
383 
384 // Each category can specify a PHP function that returns an altered
385 // version of the keyword.
386 
387 
388 
389 $this->linkscripts = array(
390  "1" => "donothing",
391  "2" => "donothing",
392  "3" => "donothing",
393  "4" => "donothing");
394 }
395 
396 
397 function donothing($keywordin)
398 {
399  return $keywordin;
400 }
401 
402 }?>