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