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