ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_zmud.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_zmud extends HFile
8  {
9  public function HFile_zmud()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // zMUD Script
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", "brown", "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("#", "$", "%", "&", ",", ".", " ", "/", "(", ")", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "[", "\\", "]", "^", "_", "|", "~", "`", "@");
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  "ABORT" => "1",
50  "ACTION" => "1",
51  "ADD" => "1",
52  "ADDITEM" => "1",
53  "ADDKEY" => "1",
54  "ALARM" => "1",
55  "ALIAS" => "1",
56  "ALL" => "1",
57  "BACKUP" => "1",
58  "BEEP" => "1",
59  "BUTTON" => "1",
60  "C+" => "1",
61  "C-" => "1",
62  "CAPTURE" => "1",
63  "CASE" => "1",
64  "CHARACTER" => "1",
65  "CLASS" => "1",
66  "CLOSE" => "1",
67  "CLR" => "1",
68  "COLOR" => "1",
69  "CONFIGURE" => "1",
70  "CONNECT" => "1",
71  "CR" => "1",
72  "CW" => "1",
73  "DBCLOSE" => "1",
74  "DBFIRST" => "1",
75  "DBGET" => "1",
76  "DBLOAD" => "1",
77  "DBNEXT" => "1",
78  "DBOFFLINE" => "1",
79  "DBONLINE" => "1",
80  "DBPREV" => "1",
81  "DBPUT" => "1",
82  "DBRESET" => "1",
83  "DBSAVE" => "1",
84  "DDE" => "1",
85  "DEFAULT" => "1",
86  "DELCLASS" => "1",
87  "DELITEM" => "1",
88  "DELKEY" => "1",
89  "DELNITEM" => "1",
90  "DESCRIBE" => "1",
91  "DIR" => "1",
92  "DISCONNECT" => "1",
93  "DOOR" => "1",
94  "ECHO" => "1",
95  "ECHOPROMPT" => "1",
96  "ERASE" => "1",
97  "EVAL" => "1",
98  "EXEC" => "1",
99  "FILE" => "1",
100  "FIND" => "1",
101  "FORALL" => "1",
102  "FREEZE" => "1",
103  "FUNCTION" => "1",
104  "GAG" => "1",
105  "GAGBLOCK" => "1",
106  "GAGOFF" => "1",
107  "GAGON" => "1",
108  "H+" => "1",
109  "H-" => "1",
110  "HELP" => "1",
111  "HIGHLIGHT" => "1",
112  "HISTORY" => "1",
113  "HOST" => "1",
114  "IF" => "1",
115  "IGNORE" => "1",
116  "INPUT" => "1",
117  "KEY" => "1",
118  "KILLALL" => "1",
119  "LAUNCH" => "1",
120  "LMAP" => "1",
121  "LOAD" => "1",
122  "LOG" => "1",
123  "LOOK" => "1",
124  "LOOP" => "1",
125  "LOOPDB" => "1",
126  "LOOPVIEW" => "1",
127  "MAKEROOM" => "1",
128  "MAP" => "1",
129  "MARK" => "1",
130  "MATH" => "1",
131  "MEDIA" => "1",
132  "MENU" => "1",
133  "MERGE" => "1",
134  "MESSAGE" => "1",
135  "MOVE" => "1",
136  "NAME" => "1",
137  "NEW" => "1",
138  "NODEF" => "1",
139  "NODIR" => "1",
140  "NOMAP" => "1",
141  "NOOP" => "1",
142  "OK" => "1",
143  "PATH" => "1",
144  "PAUSE" => "1",
145  "PICK" => "1",
146  "PLAY" => "1",
147  "PLUGIN" => "1",
148  "PROMPT" => "1",
149  "PW" => "1",
150  "QUERY" => "1",
151  "READ" => "1",
152  "RECALL" => "1",
153  "RECORD" => "1",
154  "RENAME" => "1",
155  "RESET" => "1",
156  "RETRACE" => "1",
157  "SAVE" => "1",
158  "SAY" => "1",
159  "SAYPROMPT" => "1",
160  "SCROLL" => "1",
161  "SEND" => "1",
162  "SENDPROMPT" => "1",
163  "SESSION" => "1",
164  "SHOW" => "1",
165  "SHOWDB" => "1",
166  "SHOWPROMPT" => "1",
167  "SLOW" => "1",
168  "STATUS" => "1",
169  "STEP" => "1",
170  "STOP" => "1",
171  "STW" => "1",
172  "SUBSTITUTE" => "1",
173  "T+" => "1",
174  "T-" => "1",
175  "T?" => "1",
176  "TAB" => "1",
177  "TAG" => "1",
178  "TELEPORT" => "1",
179  "TEMP" => "1",
180  "TIMER" => "1",
181  "TRIGGER" => "1",
182  "TS" => "1",
183  "TYPE" => "1",
184  "TZ" => "1",
185  "UNALIAS" => "1",
186  "UNBUTTON" => "1",
187  "UNCLASS" => "1",
188  "UNDIR" => "1",
189  "UNGAG" => "1",
190  "UNKEY" => "1",
191  "UNMENU" => "1",
192  "UNTIL" => "1",
193  "UNTRIGGER" => "1",
194  "UNVAR" => "1",
195  "URL" => "1",
196  "VARIABLE" => "1",
197  "VERBATIM" => "1",
198  "VERSION" => "1",
199  "VIEW" => "1",
200  "WAIT" => "1",
201  "WALK" => "1",
202  "WHILE" => "1",
203  "WINDOW" => "1",
204  "WIZLIST" => "1",
205  "WRAP" => "1",
206  "WRITE" => "1",
207  "YESNO" => "1",
208  "#" => "1",
209  "abs" => "4",
210  "additem" => "4",
211  "addkey" => "4",
212  "alias" => "4",
213  "ansi" => "4",
214  "ascii" => "4",
215  "average" => "4",
216  "begins" => "4",
217  "bitand" => "4",
218  "bitnot" => "4",
219  "bitor" => "4",
220  "bitxor" => "4",
221  "btncol" => "4",
222  "btnimage" => "4",
223  "case" => "4",
224  "char" => "4",
225  "clip" => "4",
226  "color" => "4",
227  "concat" => "4",
228  "copy" => "4",
229  "count" => "4",
230  "countlist" => "4",
231  "db" => "4",
232  "dbget" => "4",
233  "dblist" => "4",
234  "dbmax" => "4",
235  "dbmin" => "4",
236  "dde" => "4",
237  "ddeclose" => "4",
238  "ddemacro" => "4",
239  "ddeopen" => "4",
240  "ddepoke" => "4",
241  "defined" => "4",
242  "delete" => "4",
243  "delitem" => "4",
244  "delkey" => "4",
245  "dice" => "4",
246  "diceavg" => "4",
247  "dicedev" => "4",
248  "dicemax" => "4",
249  "dicemin" => "4",
250  "dups" => "4",
251  "ends" => "4",
252  "eval" => "4",
253  "exec" => "4",
254  "expand" => "4",
255  "filesize" => "4",
256  "find" => "4",
257  "format" => "4",
258  "getglobal" => "4",
259  "grep" => "4",
260  "handle" => "4",
261  "if" => "4",
262  "insert" => "4",
263  "iskey" => "4",
264  "ismember" => "4",
265  "isnumber" => "4",
266  "item" => "4",
267  "lastdir" => "4",
268  "left" => "4",
269  "leftback" => "4",
270  "len" => "4",
271  "literal" => "4",
272  "look" => "4",
273  "lower" => "4",
274  "max" => "4",
275  "min" => "4",
276  "mod" => "4",
277  "null" => "4",
278  "number" => "4",
279  "numbuttons" => "4",
280  "numitems" => "4",
281  "numkeys" => "4",
282  "numparam" => "4",
283  "numrec" => "4",
284  "numrooms" => "4",
285  "numwords" => "4",
286  "numzones" => "4",
287  "param" => "4",
288  "pick" => "4",
289  "pos" => "4",
290  "prompt" => "4",
291  "proper" => "4",
292  "query" => "4",
293  "quote" => "4",
294  "random" => "4",
295  "read" => "4",
296  "remove" => "4",
297  "repeat" => "4",
298  "replace" => "4",
299  "right" => "4",
300  "rightback" => "4",
301  "roomcol" => "4",
302  "roomcom" => "4",
303  "roomcontents" => "4",
304  "roomcost" => "4",
305  "roomdesc" => "4",
306  "roomexit" => "4",
307  "roomflags" => "4",
308  "roomid" => "4",
309  "roomkind" => "4",
310  "roomlink" => "4",
311  "roomload" => "4",
312  "roomname" => "4",
313  "roomnote" => "4",
314  "roomnum" => "4",
315  "roomobj" => "4",
316  "roomportal" => "4",
317  "setglobal" => "4",
318  "sort" => "4",
319  "stdev" => "4",
320  "sum" => "4",
321  "time" => "4",
322  "trigger" => "4",
323  "trim" => "4",
324  "trimleft" => "4",
325  "trimright" => "4",
326  "upper" => "4",
327  "viewrec" => "4",
328  "walk" => "4",
329  "walkmode" => "4",
330  "window" => "4",
331  "word" => "4",
332  "write" => "4",
333  "yesno" => "4",
334  "zonename" => "4",
335  "zonenum" => "4",
336  "%" => "4",
337  "-" => "3",
338  "+" => "3",
339  "=" => "3",
340  "@" => "3");
341 
342  // Special extensions
343 
344  // Each category can specify a PHP function that returns an altered
345  // version of the keyword.
346 
347 
348 
349  $this->linkscripts = array(
350  "1" => "donothing",
351  "4" => "donothing",
352  "3" => "donothing");
353  }
354 
355 
356  public function donothing($keywordin)
357  {
358  return $keywordin;
359  }
360  }
donothing($keywordin)
Definition: HFile_zmud.php:356
$BEAUT_PATH
Definition: HFile_zmud.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21