ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_mudmaster.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_mudmaster extends HFile
8  {
9  public function HFile_mudmaster()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Mud Master 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  "action" => "1",
50  "alias" => "1",
51  "array" => "1",
52  "assign" => "1",
53  "autoaccept" => "1",
54  "barback" => "1",
55  "barfore" => "1",
56  "baritem" => "1",
57  "baritemback" => "1",
58  "baritemfore" => "1",
59  "barseparator" => "1",
60  "bell" => "1",
61  "CacheSize" => "1",
62  "call" => "1",
63  "calldll" => "1",
64  "changes" => "1",
65  "char" => "1",
66  "chat" => "1",
67  "chatall" => "1",
68  "chatback" => "1",
69  "chatcommands" => "1",
70  "chatfore" => "1",
71  "chatgroup" => "1",
72  "chatgroupremove" => "1",
73  "chatgroupset" => "1",
74  "chatignore" => "1",
75  "chatname" => "1",
76  "chatport" => "1",
77  "chatprivate" => "1",
78  "chatserve" => "1",
79  "chattransfers" => "1",
80  "chatversions" => "1",
81  "clearlist" => "1",
82  "cr" => "1",
83  "debugdepth" => "1",
84  "default" => "1",
85  "dir" => "1",
86  "disableaction" => "1",
87  "disablealias" => "1",
88  "disablebaritem" => "1",
89  "disableevent" => "1",
90  "disablegag" => "1",
91  "disablegroup" => "1",
92  "disablehighlight" => "1",
93  "disablemacro" => "1",
94  "disablesub" => "1",
95  "dll" => "1",
96  "dnd" => "1",
97  "doevents" => "1",
98  "downloadpath" => "1",
99  "echo" => "1",
100  "editaction" => "1",
101  "editalias" => "1",
102  "editbaritem" => "1",
103  "editevent" => "1",
104  "editgag" => "1",
105  "edithighlight" => "1",
106  "editmacro" => "1",
107  "editsub" => "1",
108  "edit" => "1",
109  "emote" => "1",
110  "emoteall" => "1",
111  "emotegroup" => "1",
112  "empty" => "1",
113  "enableaction" => "1",
114  "enablealias" => "1",
115  "enablebaritem" => "1",
116  "enableevent" => "1",
117  "enablegag" => "1",
118  "enablegroup" => "1",
119  "enablehighlight" => "1",
120  "enablemacro" => "1",
121  "enablesub" => "1",
122  "event" => "1",
123  "filecancel" => "1",
124  "filedelete" => "1",
125  "filestatus" => "1",
126  "fireevent" => "1",
127  "freelibrary" => "1",
128  "gag" => "1",
129  "grep" => "1",
130  "groupactions" => "1",
131  "groupaliases" => "1",
132  "grouparrays" => "1",
133  "groupbaritems" => "1",
134  "groupchat" => "1",
135  "groupemote" => "1",
136  "groupevents" => "1",
137  "grouplists" => "1",
138  "groupmacros" => "1",
139  "groupsubs" => "1",
140  "groputablist" => "1",
141  "groupvariables" => "1",
142  "help" => "1",
143  "highlight" => "1",
144  "if" => "1",
145  "ignore" => "1",
146  "ignorealiases" => "1",
147  "information" => "1",
148  "itemadd" => "1",
149  "itemdelete" => "1",
150  "killall" => "1",
151  "killgroup" => "1",
152  "listadd" => "1",
153  "listdelete" => "1",
154  "listitems" => "1",
155  "lists" => "1",
156  "loadlibrary" => "1",
157  "logpath" => "1",
158  "logstatus" => "1",
159  "loop" => "1",
160  "macro" => "1",
161  "math" => "1",
162  "message" => "1",
163  "msp" => "1",
164  "nodefault" => "1",
165  "openport" => "1",
166  "pace" => "1",
167  "pause" => "1",
168  "peekconnections" => "1",
169  "ping" => "1",
170  "playmidi" => "1",
171  "playwav" => "1",
172  "presubstitute" => "1",
173  "promptoverwrite" => "1",
174  "read" => "1",
175  "remark" => "1",
176  "requestconnects" => "1",
177  "resetevent" => "1",
178  "savescrollback" => "1",
179  "scriptpath" => "1",
180  "sendaction" => "1",
181  "sendalias" => "1",
182  "sendarray" => "1",
183  "sendbaritem" => "1",
184  "sendevent" => "1",
185  "sendfile" => "1",
186  "sendgag" => "1",
187  "sendgroup" => "1",
188  "sendhighlight" => "1",
189  "sendlist" => "1",
190  "sendmacro" => "1",
191  "sendsub" => "1",
192  "sendvariable" => "1",
193  "session" => "1",
194  "sessionaddress" => "1",
195  "sessionname" => "1",
196  "sessionpath" => "1",
197  "sessionport" => "1",
198  "setbackcolor" => "1",
199  "setCWD" => "1",
200  "seteventtime" => "1",
201  "setforecolor" => "1",
202  "setIP" => "1",
203  "setInternalIP" => "1",
204  "setExternalIP" => "1",
205  "showme" => "1",
206  "showmismatcherrors" => "1",
207  "snoop" => "1",
208  "soundpath" => "1",
209  "speedwalk" => "1",
210  "startchatserver" => "1",
211  "suball" => "1",
212  "substitute" => "1",
213  "subword" => "1",
214  "tabadd" => "1",
215  "tabdelete" => "1",
216  "tablist" => "1",
217  "textin" => "1",
218  "unaction" => "1",
219  "unalias" => "1",
220  "unarray" => "1",
221  "unbaritem" => "1",
222  "unchat" => "1",
223  "undo" => "1",
224  "unevent" => "1",
225  "ungag" => "1",
226  "unhighlight" => "1",
227  "unmacro" => "1",
228  "unsubstitute" => "1",
229  "unvariable" => "1",
230  "updatebaritem" => "1",
231  "updatestatusbar" => "1",
232  "uploadpath" => "1",
233  "variable" => "1",
234  "version" => "1",
235  "volumebits" => "1",
236  "volumedefault" => "1",
237  "volumemax" => "1",
238  "while" => "1",
239  "write" => "1",
240  "writegroup" => "1",
241  "zap" => "1",
242  "Abs" => "4",
243  "AnsiBold" => "4",
244  "AnsiReset" => "4",
245  "Asc" => "4",
246  "BackBlack" => "4",
247  "BackCyan" => "4",
248  "BackGreen" => "4",
249  "BackMagenta" => "4",
250  "BackRed" => "4",
251  "BackWhite" => "4",
252  "BackYellow" => "4",
253  "CharColor" => "4",
254  "Chr" => "4",
255  "CommandCount" => "4",
256  "CommandToList" => "4",
257  "ConCat" => "4",
258  "Connected" => "4",
259  "CWD" => "4",
260  "Day" => "4",
261  "EventTime" => "4",
262  "Exists" => "4",
263  "FileExists" => "4",
264  "ForeBlack" => "4",
265  "ForeCyan" => "4",
266  "ForeGreen" => "4",
267  "ForeMagenta" => "4",
268  "ForeRed" => "4",
269  "ForeWhite" => "4",
270  "ForeYellow" => "4",
271  "GetCount" => "4",
272  "GetArray" => "4",
273  "GetItem" => "4",
274  "Hour" => "4",
275  "InList" => "4",
276  "IP" => "4",
277  "IPP" => "4",
278  "IsEmpty" => "4",
279  "IsNumber" => "4",
280  "Left" => "4",
281  "Len" => "4",
282  "Lower" => "4",
283  "LTrim" => "4",
284  "Math" => "4",
285  "Mid" => "4",
286  "Minute" => "4",
287  "Month" => "4",
288  "NumActions" => "4",
289  "NumAliases" => "4",
290  "NumArrays" => "4",
291  "NumBars" => "4",
292  "NumEvents" => "4",
293  "NumGags" => "4",
294  "NumHighlights" => "4",
295  "NumLists" => "4",
296  "NumMacros" => "4",
297  "NumTabs" => "4",
298  "NumSubstitutes" => "4",
299  "NumVars" => "4",
300  "PadLeft" => "4",
301  "PadRight" => "4",
302  "PreTranslate" => "4",
303  "ProcedureCount" => "4",
304  "Random" => "4",
305  "ReadableTime" => "4",
306  "Right" => "4",
307  "RTrim" => "4",
308  "Second" => "4",
309  "StripAnsi" => "4",
310  "StrStr" => "4",
311  "TextColor" => "4",
312  "Time" => "4",
313  "TimeToDay" => "4",
314  "TimeToDayOfWeek" => "4",
315  "TimeToHour" => "4",
316  "TimeToMinute" => "4",
317  "TimeToMonth" => "4",
318  "TimeToSecond" => "4",
319  "TimeToYear" => "4",
320  "Upper" => "4",
321  "Val" => "4",
322  "Var" => "4",
323  "Version" => "4",
324  "Word" => "4",
325  "WordColor" => "4",
326  "WordCount" => "4",
327  "Year" => "4",
328  "@" => "4",
329  "-" => "3",
330  "+" => "3",
331  "=" => "3",
332  "$" => "3");
333 
334  // Special extensions
335 
336  // Each category can specify a PHP function that returns an altered
337  // version of the keyword.
338 
339 
340 
341  $this->linkscripts = array(
342  "1" => "donothing",
343  "4" => "donothing",
344  "3" => "donothing");
345  }
346 
347 
348  public function donothing($keywordin)
349  {
350  return $keywordin;
351  }
352  }
donothing($keywordin)
$BEAUT_PATH
Create styles array
The data for the language used.
Definition: HFile.php:21