ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_omnimark.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_omnimark extends HFile{
6  function HFile_omnimark(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 //
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");
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  "/L10" => "",
46  "\"Omnimark\"" => "",
47  "Line" => "",
48  "Comment" => "",
49  "=" => "",
50  ";" => "",
51  "Nocase" => "",
52  "File" => "",
53  "Extensions" => "",
54  "XOM" => "",
55  "ACTIVATE" => "1",
56  "AGAIN" => "1",
57  "CATCH" => "1",
58  "CLEAR" => "1",
59  "CLOSE" => "1",
60  "COPY" => "1",
61  "COPY-CLEAR" => "1",
62  "CROSS-TRANSLATE" => "1",
63  "DEACTIVATE" => "1",
64  "DECLARE" => "1",
65  "DECREMENT" => "1",
66  "DEFINE" => "1",
67  "DISCARD" => "1",
68  "DIVIDE" => "1",
69  "DO" => "1",
70  "DOCUMENT-END" => "1",
71  "DOCUMENT-START" => "1",
72  "DONE" => "1",
73  "DTD-START" => "1",
74  "ELEMENT" => "1",
75  "ELSE" => "1",
76  "ESCAPE" => "1",
77  "EXIT" => "1",
78  "FAIL" => "1",
79  "FIND" => "1",
80  "FIND-END" => "1",
81  "FIND-START" => "1",
82  "FORMAT" => "1",
83  "GROUP" => "1",
84  "HALT" => "1",
85  "HALT-EVERYTHING" => "1",
86  "IGNORE" => "1",
87  "IMPLIED" => "1",
88  "INCLUDE" => "1",
89  "INCLUDE-END" => "1",
90  "INCLUDE-START" => "1",
91  "INCREMENT" => "1",
92  "INPUT" => "1",
93  "JOIN" => "1",
94  "LINE-END" => "1",
95  "LINE-START" => "1",
96  "LOG" => "1",
97  "LOOKAHEAD" => "1",
98  "MACRO" => "1",
99  "MACRO-END" => "1",
100  "MARKED-SECTION" => "1",
101  "MARKUP-COMMENT" => "1",
102  "MARKUP-ERROR" => "1",
103  "MARKUP-PARSER" => "1",
104  "MASK" => "1",
105  "MATCH" => "1",
106  "MINUS" => "1",
107  "MODULO" => "1",
108  "NEW" => "1",
109  "NEWLINE" => "1",
110  "NEXT" => "1",
111  "OPEN" => "1",
112  "OUTPUT" => "1",
113  "OUTPUT-TO" => "1",
114  "OVER" => "1",
115  "PROCESS" => "1",
116  "PROCESS-END" => "1",
117  "PROCESS-START" => "1",
118  "PROCESSING-INSTRUCTION" => "1",
119  "PROLOG-END" => "1",
120  "PROLOG-IN-ERROR" => "1",
121  "PUT" => "1",
122  "REMOVE" => "1",
123  "REOPEN" => "1",
124  "REPEAT" => "1",
125  "RESET" => "1",
126  "RETHROW" => "1",
127  "RETURN" => "1",
128  "SAVE" => "1",
129  "SAVE-CLEAR" => "1",
130  "SCAN" => "1",
131  "SELECT" => "1",
132  "SET" => "1",
133  "SGML" => "1",
134  "SGML-COMMENT" => "1",
135  "SGML-DECLARATION-END" => "1",
136  "SGML-DTD" => "1",
137  "SGML-DTDS" => "1",
138  "SGML-ERROR" => "1",
139  "SGML-IN" => "1",
140  "SGML-OUT" => "1",
141  "SGML-PARSE" => "1",
142  "SGML-PARSER" => "1",
143  "SHIFT" => "1",
144  "SUBMIT" => "1",
145  "SUCCEED" => "1",
146  "SUPPRESS" => "1",
147  "SYSTEM-CALL" => "1",
148  "TEST-SYSTEM" => "1",
149  "THROW" => "1",
150  "TO" => "1",
151  "TRANSLATE" => "1",
152  "UC" => "1",
153  "UL" => "1",
154  "UNLESS" => "1",
155  "UP-TRANSLATE" => "1",
156  "WHEN" => "1",
157  "WHITE-SPACE" => "1",
158  "XML-PARSE" => "1",
159  "ACTIVE" => "2",
160  "AFTER" => "2",
161  "ANCESTOR" => "2",
162  "AND" => "2",
163  "ANOTHER" => "2",
164  "ARG" => "2",
165  "AS" => "2",
166  "ATTACHED" => "2",
167  "ATTRIBUTE" => "2",
168  "ATTRIBUTES" => "2",
169  "BASE" => "2",
170  "BEFORE" => "2",
171  "BINARY" => "2",
172  "BINARY-INPUT" => "2",
173  "BINARY-MODE" => "2",
174  "BINARY-OUTPUT" => "2",
175  "BREAK-WIDTH" => "2",
176  "BUFFER" => "2",
177  "BY" => "2",
178  "CASE" => "2",
179  "CHILDREN" => "2",
180  "CLOSED" => "2",
181  "COMPILED-DATE" => "2",
182  "COMPLEMENT" => "2",
183  "CONREF" => "2",
184  "CONTENT" => "2",
185  "CONTEXT-TRANSLATE" => "2",
186  "COUNTER" => "2",
187  "CREATED" => "2",
188  "CREATING" => "2",
189  "CREATOR" => "2",
190  "CURRENT" => "2",
191  "DATA-ATTRIBUTE" => "2",
192  "DATA-ATTRIBUTES" => "2",
193  "DATA-CONTENT" => "2",
194  "DATA-LETTERS" => "2",
195  "DATE" => "2",
196  "DECLARED-CONREF" => "2",
197  "DECLARED-CURRENT" => "2",
198  "DECLARED-DEFAULTED" => "2",
199  "DECLARED-FIXED" => "2",
200  "DECLARED-IMPLIED" => "2",
201  "DECLARED-REQUIRED" => "2",
202  "DEFAULT-ENTITY" => "2",
203  "DEFAULTED" => "2",
204  "DEFAULTING" => "2",
205  "DELIMITER" => "2",
206  "DIFFERENCE" => "2",
207  "DIRECTORY" => "2",
208  "DOCTYPE" => "2",
209  "DOCUMENT" => "2",
210  "DOCUMENT-ELEMENT" => "2",
211  "DOMAIN-FREE" => "2",
212  "DOWN-TRANSLATE" => "2",
213  "DTD" => "2",
214  "DTD-END" => "2",
215  "DTDS" => "2",
216  "ELEMENTS" => "2",
217  "ELSEWHERE" => "2",
218  "EMPTY" => "2",
219  "ENTITIES" => "2",
220  "ENTITY" => "2",
221  "EPILOG-START" => "2",
222  "EQUAL" => "2",
223  "EXCEPT" => "2",
224  "EXISTS" => "2",
225  "EXTERNAL" => "2",
226  "EXTERNAL-DATA-ENTITY" => "2",
227  "EXTERNAL-ENTITY" => "2",
228  "EXTERNAL-FUNCTION" => "2",
229  "EXTERNAL-OUTPUT-FUNCTION" => "2",
230  "EXTERNAL-TEXT-ENTITY" => "2",
231  "FALSE" => "2",
232  "FILE" => "2",
233  "FUNCTION" => "2",
234  "FUNCTION-LIBRARY" => "2",
235  "GENERAL" => "2",
236  "GLOBAL" => "2",
237  "GREATER-EQUAL" => "2",
238  "GREATER-THAN" => "2",
239  "GROUPS" => "2",
240  "HAS" => "2",
241  "HASNT" => "2",
242  "HERALDED-NAMES" => "2",
243  "ID" => "2",
244  "ID-CHECKING" => "2",
245  "IDREF" => "2",
246  "IDREFS" => "2",
247  "IN" => "2",
248  "IN-LIBRARY" => "2",
249  "INCLUSION" => "2",
250  "INITIAL" => "2",
251  "INITIAL-SIZE" => "2",
252  "INSERTION-BREAK" => "2",
253  "INSTANCE" => "2",
254  "INTERNAL" => "2",
255  "INVALID-DATA" => "2",
256  "IS" => "2",
257  "ISNT" => "2",
258  "ITEM" => "2",
259  "KEY" => "2",
260  "KEYED" => "2",
261  "LAST" => "2",
262  "LASTMOST" => "2",
263  "LC" => "2",
264  "LENGTH" => "2",
265  "LESS-EQUAL" => "2",
266  "LESS-THAN" => "2",
267  "LETTERS" => "2",
268  "LIBRARY" => "2",
269  "LITERAL" => "2",
270  "LOCAL" => "2",
271  "MATCHES" => "2",
272  "MIXED" => "2",
273  "MODIFIABLE" => "2",
274  "NAME" => "2",
275  "NAME-LETTERS" => "2",
276  "NAMECASE" => "2",
277  "NAMED" => "2",
278  "NAMES" => "2",
279  "NDATA-ENTITY" => "2",
280  "NEGATE" => "2",
281  "NESTED-REFERENTS" => "2",
282  "NMTOKEN" => "2",
283  "NMTOKENS" => "2",
284  "NO" => "2",
285  "NO-DEFAULT-IO" => "2",
286  "NON-CDATA" => "2",
287  "NON-IMPLIED" => "2",
288  "NON-SDATA" => "2",
289  "NOT" => "2",
290  "NOTATION" => "2",
291  "NUMBER-OF" => "2",
292  "NUMBERS" => "2",
293  "NUTOKEN" => "2",
294  "NUTOKENS" => "2",
295  "OCCURRENCE" => "2",
296  "OF" => "2",
297  "OPAQUE" => "2",
298  "OPTIONAL" => "2",
299  "OR" => "2",
300  "PARAMETER" => "2",
301  "PARENT" => "2",
302  "PAST" => "2",
303  "PATTERN" => "2",
304  "PLUS" => "2",
305  "PREPARENT" => "2",
306  "PREVIOUS" => "2",
307  "PROPER" => "2",
308  "PUBLIC" => "2",
309  "READ-ONLY" => "2",
310  "READABLE" => "2",
311  "REFERENT" => "2",
312  "REFERENTS" => "2",
313  "REFERENTS-ALLOWED" => "2",
314  "REFERENTS-DISPLAYED" => "2",
315  "REFERENTS-NOT-ALLOWED" => "2",
316  "REMAINDER" => "2",
317  "REPEATED" => "2",
318  "REPLACEMENT-BREAK" => "2",
319  "REVERSED" => "2",
320  "SILENT-REFERENT" => "2",
321  "SIZE" => "2",
322  "SKIP" => "2",
323  "SOURCE" => "2",
324  "SPECIFIED" => "2",
325  "STATUS" => "2",
326  "STREAM" => "2",
327  "SUBDOC-ENTITY" => "2",
328  "SUBDOCUMENT" => "2",
329  "SUBDOCUMENTS" => "2",
330  "SUBELEMENT" => "2",
331  "SWITCH" => "2",
332  "SYMBOL" => "2",
333  "SYSTEM" => "2",
334  "TEXT-MODE" => "2",
335  "THIS" => "2",
336  "TIMES" => "2",
337  "TOKEN" => "2",
338  "TRUE" => "2",
339  "UNANCHORED" => "2",
340  "UNATTACHED" => "2",
341  "UNION" => "2",
342  "USEMAP" => "2",
343  "USING" => "2",
344  "VALUE" => "2",
345  "VALUED" => "2",
346  "VARIABLE" => "2",
347  "WITH" => "2",
348  "WRITABLE" => "2",
349  "XML" => "2",
350  "XML-DTD" => "2",
351  "XML-DTDS" => "2",
352  "YES" => "2",
353  "#ADDITIONAL-INFO" => "2",
354  "#APPINFO" => "2",
355  "#CAPACITY" => "2",
356  "#CHARSET" => "2",
357  "#CLASS" => "2",
358  "#COMMAND-LINE-NAMES" => "2",
359  "#CONSOLE" => "2",
360  "#CURRENT-INPUT" => "2",
361  "#CURRENT-OUTPUT" => "2",
362  "#DATA" => "2",
363  "#DOCTYPE" => "2",
364  "#DOCUMENT" => "2",
365  "#DTD" => "2",
366  "#EMPTY" => "2",
367  "#ERROR" => "2",
368  "#ERROR-CODE" => "2",
369  "#FILE-NAME" => "2",
370  "#FIRST" => "2",
371  "#GROUP" => "2",
372  "#IMPLIED" => "2",
373  "#ITEM" => "2",
374  "#LANGUAGE-VERSION" => "2",
375  "#LAST" => "2",
376  "#LIBPATH" => "2",
377  "#LIBRARY" => "2",
378  "#LIBVALUE" => "2",
379  "#LINE-NUMBER" => "2",
380  "#MAIN-INPUT" => "2",
381  "#MAIN-OUTPUT" => "2",
382  "#MARKUP-ERROR-COUNT" => "2",
383  "#MARKUP-ERROR-TOTAL" => "2",
384  "#MARKUP-PARSER" => "2",
385  "#MARKUP-WARNING-COUNT" => "2",
386  "#MARKUP-WARNING-TOTAL" => "2",
387  "#MESSAGE" => "2",
388  "#NONE" => "2",
389  "#OUTPUT" => "2",
390  "#PLATFORM-INFO" => "2",
391  "#PROCESS-INPUT" => "2",
392  "#PROCESS-OUTPUT" => "2",
393  "#RECOVERY-INFO" => "2",
394  "#SGML" => "2",
395  "#SGML-ERROR-COUNT" => "2",
396  "#SGML-ERROR-TOTAL" => "2",
397  "#SGML-WARNING-COUNT" => "2",
398  "#SGML-WARNING-TOTAL" => "2",
399  "#SUPPRESS" => "2",
400  "#SYNTAX" => "2",
401  "#!" => "2",
402  "ANY" => "3",
403  "ANY-TEXT" => "3",
404  "BLANK" => "3",
405  "CDATA" => "3",
406  "CDATA-ENTITY" => "3",
407  "CONTENT-END" => "3",
408  "CONTENT-START" => "3",
409  "DIGIT" => "3",
410  "LETTER" => "3",
411  "NUMBER" => "3",
412  "PCDATA" => "3",
413  "RCDATA" => "3",
414  "SDATA" => "3",
415  "SDATA-ENTITY" => "3",
416  "SPACE" => "3",
417  "TEXT" => "3",
418  "VALUE-END" => "3",
419  "VALUE-START" => "3",
420  "WORD-END" => "3",
421  "WORD-START" => "3");
422 
423 // Special extensions
424 
425 // Each category can specify a PHP function that returns an altered
426 // version of the keyword.
427 
428 
429 
430 $this->linkscripts = array(
431  "" => "donothing",
432  "1" => "donothing",
433  "2" => "donothing",
434  "3" => "donothing");
435 }
436 
437 
438 function donothing($keywordin)
439 {
440  return $keywordin;
441 }
442 
443 }?>