ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_inform.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_inform extends HFile{
6  function HFile_inform(){
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", "brown", "blue");
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  "\"Inform\"" => "",
47  "Line" => "",
48  "Comment" => "",
49  "=" => "",
50  "!" => "",
51  "String" => "",
52  "Chars" => "",
53  "\"'" => "",
54  "File" => "",
55  "Extensions" => "",
56  "H" => "",
57  "INF" => "",
58  "box" => "1",
59  "break" => "1",
60  "bold" => "1",
61  "continue" => "1",
62  "do" => "1",
63  "else" => "1",
64  "font" => "1",
65  "for" => "1",
66  "fixed" => "1",
67  "give" => "1",
68  "if" => "1",
69  "inversion" => "1",
70  "jump" => "1",
71  "move" => "1",
72  "new_line" => "1",
73  "objectloop" => "1",
74  "print" => "1",
75  "print_ret" => "1",
76  "quit" => "1",
77  "read" => "1",
78  "remove" => "1",
79  "restore" => "1",
80  "return" => "1",
81  "rfalse" => "1",
82  "rtrue" => "1",
83  "roman" => "1",
84  "reverse" => "1",
85  "save" => "1",
86  "spaces" => "1",
87  "string" => "1",
88  "style" => "1",
89  "switch" => "1",
90  "until" => "1",
91  "underline" => "1",
92  "while" => "1",
93  "Abbreviate" => "2",
94  "Array" => "2",
95  "Attribute" => "2",
96  "Class" => "2",
97  "Constant" => "2",
98  "Default" => "2",
99  "Dictionary" => "2",
100  "End" => "2",
101  "Endif" => "2",
102  "Extend" => "2",
103  "Fake_action" => "2",
104  "Global" => "2",
105  "Ifdef" => "2",
106  "Ifndef" => "2",
107  "Ifnot" => "2",
108  "Iftrue" => "2",
109  "Iffalse" => "2",
110  "Import" => "2",
111  "Include" => "2",
112  "Ifv3" => "2",
113  "Ifv5" => "2",
114  "Link" => "2",
115  "Lowstring" => "2",
116  "Message" => "2",
117  "Nearby" => "2",
118  "Object" => "2",
119  "Property" => "2",
120  "Release" => "2",
121  "Replace" => "2",
122  "Serial" => "2",
123  "Switches" => "2",
124  "Statusline" => "2",
125  "System_file" => "2",
126  "Stub" => "2",
127  "score" => "2",
128  "time" => "2",
129  "Trace" => "2",
130  "Verb" => "2",
131  "Version" => "2",
132  "creature" => "3",
133  "first" => "3",
134  "held" => "3",
135  "last" => "3",
136  "meta" => "3",
137  "multi" => "3",
138  "multiheld" => "3",
139  "multiexcept" => "3",
140  "multiinside" => "3",
141  "noun" => "3",
142  "number" => "3",
143  "only" => "3",
144  "replace" => "3",
145  "scope" => "3",
146  "special" => "3",
147  "topic" => "3",
148  "absent" => "4",
149  "animate" => "4",
150  "add_to_scope" => "4",
151  "after" => "4",
152  "article" => "4",
153  "articles" => "4",
154  "before" => "4",
155  "clothing" => "4",
156  "conealed" => "4",
157  "container" => "4",
158  "cant_go" => "4",
159  "capacity" => "4",
160  "door" => "4",
161  "daemon" => "4",
162  "describe" => "4",
163  "description" => "4",
164  "door_dir" => "4",
165  "door_to" => "4",
166  "d_to" => "4",
167  "edible" => "4",
168  "enterable" => "4",
169  "each_turn" => "4",
170  "e_to" => "4",
171  "female" => "4",
172  "found_in" => "4",
173  "initial" => "4",
174  "inside_description" => "4",
175  "invent" => "4",
176  "in_to" => "4",
177  "general" => "4",
178  "grammar" => "4",
179  "light" => "4",
180  "lockable" => "4",
181  "locked" => "4",
182  "life" => "4",
183  "list_together" => "4",
184  "male" => "4",
185  "moved" => "4",
186  "neuter" => "4",
187  "name" => "4",
188  "n_to" => "4",
189  "nw_to" => "4",
190  "ne_to" => "4",
191  "on" => "4",
192  "open" => "4",
193  "openable" => "4",
194  "orders" => "4",
195  "out_to" => "4",
196  "pluralname" => "4",
197  "proper" => "4",
198  "parse_name" => "4",
199  "plural" => "4",
200  "react_after" => "4",
201  "react_before" => "4",
202  "scenery" => "4",
203  "scored" => "4",
204  "static" => "4",
205  "supporter" => "4",
206  "switchable" => "4",
207  "short_name" => "4",
208  "short_name_indef" => "4",
209  "s_to" => "4",
210  "se_to" => "4",
211  "sw_to" => "4",
212  "talkable" => "4",
213  "transparent" => "4",
214  "time_left" => "4",
215  "time_out" => "4",
216  "visited" => "4",
217  "u_to" => "4",
218  "workflag" => "4",
219  "worn" => "4",
220  "when_closed" => "4",
221  "when_open" => "4",
222  "when_off" => "4",
223  "when_on" => "4",
224  "with_key" => "4",
225  "w_to" => "4",
226  "ActionsOn" => "5",
227  "ActionsOff" => "5",
228  "Attack" => "5",
229  "Answer" => "5",
230  "Ask" => "5",
231  "AskFor" => "5",
232  "Burn" => "5",
233  "Blow" => "5",
234  "Buy" => "5",
235  "CommandsOn" => "5",
236  "CommandsOff" => "5",
237  "CommandsRead" => "5",
238  "Close" => "5",
239  "Consult" => "5",
240  "Cut" => "5",
241  "Climb" => "5",
242  "Drop" => "5",
243  "Disrobe" => "5",
244  "Dig" => "5",
245  "Drink" => "5",
246  "Empty" => "5",
247  "Enter" => "5",
248  "Exit" => "5",
249  "Examine" => "5",
250  "Eat" => "5",
251  "Fullscore" => "5",
252  "Fill" => "5",
253  "Goto" => "5",
254  "Gonear" => "5",
255  "GetOff" => "5",
256  "Go" => "5",
257  "GoIn" => "5",
258  "Give" => "5",
259  "Inv" => "5",
260  "InvTall" => "5",
261  "InvWide" => "5",
262  "Insert" => "5",
263  "Jump" => "5",
264  "JumpOver" => "5",
265  "Kiss" => "5",
266  "LMode1" => "5",
267  "LMode2" => "5",
268  "LMode3" => "5",
269  "Look" => "5",
270  "Lock" => "5",
271  "Listen" => "5",
272  "LookUnder" => "5",
273  "LetGo" => "5",
274  "Mild" => "5",
275  "Miscellany" => "5",
276  "NotifyOn" => "5",
277  "NotifyOff" => "5",
278  "No" => "5",
279  "Objects" => "5",
280  "Open" => "5",
281  "Order" => "5",
282  "Pronouns" => "5",
283  "Places" => "5",
284  "Predictable" => "5",
285  "PutOn" => "5",
286  "Pray" => "5",
287  "Pull" => "5",
288  "Push" => "5",
289  "PushDir" => "5",
290  "PluralFound" => "5",
291  "Prompt" => "5",
292  "Quit" => "5",
293  "Restart" => "5",
294  "Restore" => "5",
295  "RoutinesOn" => "5",
296  "RoutinesOff" => "5",
297  "Remove" => "5",
298  "Rub" => "5",
299  "Receive" => "5",
300  "Save" => "5",
301  "SciptOn" => "5",
302  "ScriptOff" => "5",
303  "Score" => "5",
304  "Scope" => "5",
305  "Search" => "5",
306  "Show" => "5",
307  "SwitchOn" => "5",
308  "SwitchOff" => "5",
309  "Smell" => "5",
310  "Sorry" => "5",
311  "Strong" => "5",
312  "Swim" => "5",
313  "Swing" => "5",
314  "Set" => "5",
315  "SetTo" => "5",
316  "Squeeze" => "5",
317  "Sing" => "5",
318  "Sleep" => "5",
319  "TraceOn" => "5",
320  "TraceOff" => "5",
321  "TraceLevel" => "5",
322  "TimersOn" => "5",
323  "TimersOff" => "5",
324  "Transfer" => "5",
325  "Think" => "5",
326  "Taste" => "5",
327  "Touch" => "5",
328  "Tie" => "5",
329  "Turn" => "5",
330  "ThrowAt" => "5",
331  "ThrownAt" => "5",
332  "TheSame" => "5",
333  "Unlock" => "5",
334  "Verify" => "5",
335  "Xpurloin" => "5",
336  "Xabstract" => "5",
337  "Xtree" => "5",
338  "Yes" => "5",
339  "Wear" => "5",
340  "Wake" => "5",
341  "WakeOther" => "5",
342  "Wave" => "5",
343  "WaveHands" => "5",
344  "Wait" => "5");
345 
346 // Special extensions
347 
348 // Each category can specify a PHP function that returns an altered
349 // version of the keyword.
350 
351 
352 
353 $this->linkscripts = array(
354  "" => "donothing",
355  "1" => "donothing",
356  "2" => "donothing",
357  "3" => "donothing",
358  "4" => "donothing",
359  "5" => "donothing");
360 }
361 
362 
363 function donothing($keywordin)
364 {
365  return $keywordin;
366 }
367 
368 }?>