ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_hugo Class Reference
+ Inheritance diagram for HFile_hugo:
+ Collaboration diagram for HFile_hugo:

Public Member Functions

 HFile_hugo ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 7 of file HFile_hugo.php.

Member Function Documentation

◆ donothing()

HFile_hugo::donothing (   $keywordin)

Definition at line 553 of file HFile_hugo.php.

554  {
555  return $keywordin;
556  }

◆ HFile_hugo()

HFile_hugo::HFile_hugo ( )

Definition at line 9 of file HFile_hugo.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Hugo
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue", "brown", "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  "Below" => "",
50  "is" => "1",
51  "a" => "",
52  "new" => "",
53  "UltraEdit" => "",
54  "word" => "",
55  "file" => "",
56  "for" => "1",
57  "Hugo." => "",
58  "Since" => "",
59  "doesn\'t" => "",
60  "yet" => "",
61  "support" => "",
62  "multi-line" => "",
63  "string" => "1",
64  "coloring," => "",
65  "I" => "",
66  "have" => "",
67  "hacked" => "",
68  "around" => "",
69  "that" => "",
70  "by" => "",
71  "defining" => "",
72  "strings" => "",
73  "as" => "",
74  "the" => "",
75  "default" => "",
76  "block" => "",
77  "comment," => "",
78  "which" => "",
79  "Inform" => "",
80  "lacks" => "",
81  "anyway." => "",
82  "However," => "",
83  "this" => "",
84  "means" => "",
85  "any" => "",
86  "enclosed" => "",
87  "\"" => "",
88  "must" => "",
89  "be" => "",
90  "preceded" => "",
91  "with" => "",
92  "space," => "",
93  "i.e." => "",
94  "print" => "1",
95  "\"Hello," => "",
96  "world^^" => "",
97  "You" => "",
98  "died\"" => "",
99  "will" => "",
100  "work," => "",
101  "but" => "",
102  "Format(\"Hello" => "",
103  "World\")" => "",
104  "not." => "",
105  "To" => "",
106  "use" => "",
107  "syntax" => "",
108  "coloring" => "",
109  "mode," => "",
110  "cut-and-paste" => "",
111  "all" => "",
112  "below" => "",
113  "\"dotted" => "",
114  "line\"" => "",
115  "and" => "1",
116  "drop" => "",
117  "it" => "",
118  "into" => "",
119  "your" => "",
120  "WORDFILE.TXT." => "",
121  "Depending" => "",
122  "on" => "",
123  "how" => "",
124  "few/many" => "",
125  "languages" => "",
126  "you" => "",
127  "defined," => "",
128  "might" => "",
129  "to" => "1",
130  "change" => "",
131  "\"/L10\"" => "",
132  "an" => "",
133  "unused" => "",
134  "number." => "",
135  "Also" => "",
136  "note" => "",
137  "definition" => "",
138  "(starting" => "",
139  "\"/L10\")" => "",
140  "*all*" => "",
141  "*on*" => "",
142  "*one*" => "",
143  "*line*" => "",
144  "up" => "",
145  "including" => "",
146  "\"File" => "",
147  "Extensions" => "",
148  "=" => "",
149  "H" => "",
150  "G" => "",
151  "HUG\"" => "",
152  "or" => "1",
153  "won\'t" => "",
154  "work." => "",
155  "If" => "",
156  "find" => "",
157  "useful" => "",
158  "library" => "",
159  "routines," => "",
160  "constants" => "",
161  "anything" => "1",
162  "else" => "1",
163  "I\'ve" => "",
164  "missed," => "",
165  "if" => "1",
166  "comments" => "",
167  "at" => "",
168  "all," => "",
169  "contact" => "",
170  "me!" => "",
171  "Version" => "",
172  "2.19991201" => "",
173  "Gunther" => "",
174  "Schmidl" => "",
175  "<gschmidl@gmx.at>" => "",
176  "---cut" => "",
177  "here---cut" => "",
178  "here---" => "",
179  "array" => "1",
180  "attribute" => "1",
181  "break" => "1",
182  "call" => "1",
183  "capital" => "1",
184  "case" => "1",
185  "child" => "1",
186  "children" => "1",
187  "cls" => "1",
188  "color" => "1",
189  "colour" => "1",
190  "constant" => "1",
191  "class" => "1",
192  "dict" => "1",
193  "do" => "1",
194  "elder" => "1",
195  "eldest" => "1",
196  "elseif" => "1",
197  "false" => "1",
198  "global" => "1",
199  "held" => "1",
200  "hex" => "1",
201  "in" => "1",
202  "input" => "1",
203  "jump" => "1",
204  "local" => "1",
205  "locate" => "1",
206  "move" => "1",
207  "multi" => "1",
208  "multiheld" => "1",
209  "multinotheld" => "1",
210  "music" => "1",
211  "nearby" => "1",
212  "newline" => "1",
213  "not" => "1",
214  "notheld" => "1",
215  "number" => "1",
216  "object" => "1",
217  "parent" => "1",
218  "parse$" => "1",
219  "pause" => "1",
220  "picture" => "1",
221  "playback" => "1",
222  "printchar" => "1",
223  "player_character" => "1",
224  "property" => "1",
225  "quit" => "1",
226  "random" => "1",
227  "readfile" => "1",
228  "readval" => "1",
229  "recordoff" => "1",
230  "recordon" => "1",
231  "remove" => "1",
232  "restart" => "1",
233  "restore" => "1",
234  "return" => "1",
235  "run" => "1",
236  "runevents" => "1",
237  "routine" => "1",
238  "replace" => "1",
239  "room" => "1",
240  "removal" => "1",
241  "save" => "1",
242  "scriptoff" => "1",
243  "scripton" => "1",
244  "select" => "1",
245  "serial$" => "1",
246  "sibling" => "1",
247  "sound" => "1",
248  "system" => "1",
249  "text" => "1",
250  "true" => "1",
251  "undo" => "1",
252  "verb" => "1",
253  "while" => "1",
254  "window" => "1",
255  "writefile" => "1",
256  "writeval" => "1",
257  "xobject" => "1",
258  "xverb" => "1",
259  "younger" => "1",
260  "youngest" => "1",
261  "already_listed" => "2",
262  "clothing" => "2",
263  "container" => "2",
264  "enterable" => "2",
265  "female" => "2",
266  "hidden" => "2",
267  "known" => "2",
268  "light" => "2",
269  "living" => "2",
270  "lockable" => "2",
271  "locked" => "2",
272  "mobile" => "2",
273  "moved" => "2",
274  "open" => "2",
275  "openable" => "2",
276  "platform" => "2",
277  "plural" => "2",
278  "quiet" => "2",
279  "readable" => "2",
280  "special" => "2",
281  "static" => "2",
282  "switchable" => "2",
283  "switchedon" => "2",
284  "transparent" => "2",
285  "unfriendly" => "2",
286  "visited" => "2",
287  "workflag" => "2",
288  "worn" => "2",
289  "actor" => "3",
290  "after_period" => "3",
291  "best_parse_rank" => "3",
292  "bgcolor" => "3",
293  "boldcolor" => "3",
294  "counter" => "3",
295  "customerror_flag" => "3",
296  "default_font" => "3",
297  "endflag" => "3",
298  "event_flag" => "3",
299  "format" => "3",
300  "general" => "3",
301  "her_obj" => "3",
302  "him_obj" => "3",
303  "indent_size" => "3",
304  "it_obj" => "3",
305  "last_object" => "3",
306  "light_source" => "3",
307  "list_nest" => "3",
308  "location" => "3",
309  "max_rank" => "3",
310  "max_score" => "3",
311  "need_newline" => "3",
312  "number_scripts" => "3",
313  "objects" => "3",
314  "obstacle" => "3",
315  "old_location" => "3",
316  "oldword" => "3",
317  "override_indent" => "3",
318  "player" => "3",
319  "player_person" => "3",
320  "prompt" => "3",
321  "ranking" => "3",
322  "replace_pronoun" => "3",
323  "score" => "3",
324  "scriptdata" => "3",
325  "self" => "3",
326  "setscript" => "3",
327  "sl_bgcolor" => "3",
328  "sl_textcolor" => "3",
329  "speaking" => "3",
330  "statustype" => "3",
331  "textcolor" => "3",
332  "them_obj" => "3",
333  "verbosity" => "3",
334  "verbroutine" => "3",
335  "words" => "3",
336  "_temp_array" => "4",
337  "and_word" => "4",
338  "are_word" => "4",
339  "banner" => "4",
340  "black" => "4",
341  "blue" => "4",
342  "bold_off" => "4",
343  "bold_on" => "4",
344  "bright_white" => "4",
345  "brown" => "4",
346  "cyan" => "4",
347  "dark_gray" => "4",
348  "def_background" => "4",
349  "def_foreground" => "4",
350  "def_sl_background" => "4",
351  "def_sl_foreground" => "4",
352  "descform_f" => "4",
353  "down_arrow" => "4",
354  "enter_key" => "4",
355  "escape_key" => "4",
356  "file_check" => "4",
357  "green" => "4",
358  "groupplurals_f" => "4",
359  "here_word" => "4",
360  "in_word" => "4",
361  "is_word" => "4",
362  "italic_off" => "4",
363  "italic_on" => "4",
364  "left_arrow" => "4",
365  "light_blue" => "4",
366  "light_cyan" => "4",
367  "light_green" => "4",
368  "light_magenta" => "4",
369  "light_red" => "4",
370  "list_f" => "4",
371  "magenta" => "4",
372  "match_foreground" => "4",
373  "max_scripts" => "4",
374  "max_words" => "4",
375  "menu_bgcolor" => "4",
376  "menu_selectbgcolor" => "4",
377  "menu_selectcolor" => "4",
378  "menu_textcolor" => "4",
379  "menuitem" => "4",
380  "noindent_f" => "4",
381  "norecurse_f" => "4",
382  "on_word" => "4",
383  "prop_off" => "4",
384  "prop_on" => "4",
385  "red" => "4",
386  "right_arrow" => "4",
387  "underline_off" => "4",
388  "underline_on" => "4",
389  "up_arrow" => "4",
390  "white" => "4",
391  "yellow" => "4",
392  "adjective" => "5",
393  "adjectives" => "5",
394  "after" => "5",
395  "article" => "5",
396  "before" => "5",
397  "cant_go" => "5",
398  "capacity" => "5",
399  "contains_desc" => "5",
400  "cursor_column" => "5",
401  "cursor_row" => "5",
402  "d_to" => "5",
403  "desc_detail" => "5",
404  "door_to" => "5",
405  "e_to" => "5",
406  "exclude_from_all" => "5",
407  "found_in" => "5",
408  "hasgraphics" => "5",
409  "holding" => "5",
410  "ignore_response" => "5",
411  "in_scope" => "5",
412  "in_to" => "5",
413  "initial_desc" => "5",
414  "inv_desc" => "5",
415  "key_object" => "5",
416  "linelength" => "5",
417  "list_contents" => "5",
418  "long_desc" => "5",
419  "misc" => "5",
420  "n_to" => "5",
421  "name" => "5",
422  "ne_to" => "5",
423  "noun" => "5",
424  "nouns" => "5",
425  "nw_to" => "5",
426  "order_response" => "5",
427  "out_to" => "5",
428  "parse_rank" => "5",
429  "prep" => "5",
430  "preposition" => "5",
431  "pronoun" => "5",
432  "reach" => "5",
433  "s_to" => "5",
434  "screenheight" => "5",
435  "screenwidth" => "5",
436  "se_to" => "5",
437  "short_desc" => "5",
438  "size" => "5",
439  "statusline_height" => "5",
440  "sw_to" => "5",
441  "title_caption" => "5",
442  "type" => "5",
443  "u_to" => "5",
444  "w_to" => "5",
445  "when_closed" => "5",
446  "when_open" => "5",
447  "windowlines" => "5",
448  "**" => "8",
449  "Do" => "6",
450  "&Do" => "6",
451  "&Char" => "6",
452  "&Loop" => "6",
453  "Acquire" => "7",
454  "AnyVerb" => "7",
455  "AssignPronoun" => "7",
456  "Activate" => "7",
457  "Art" => "7",
458  "abs" => "7",
459  "CThe" => "7",
460  "CArt" => "7",
461  "CalculateHolding" => "7",
462  "CenterTitle" => "7",
463  "CheckReach" => "7",
464  "Contains" => "7",
465  "CustomError" => "7",
466  "CancelScript" => "7",
467  "DarkWarning" => "7",
468  "DeleteWord" => "7",
469  "DescribePlace" => "7",
470  "Deactivate" => "7",
471  "EndGame" => "7",
472  "ExcludeFromAll" => "7",
473  "FindLight" => "7",
474  "Font" => "7",
475  "FindObject" => "7",
476  "GetInput" => "7",
477  "HoursMinutes" => "7",
478  "higher" => "7",
479  "Indent" => "7",
480  "InList" => "7",
481  "InsertWord" => "7",
482  "IsorAre" => "7",
483  "ListObjects" => "7",
484  "lower" => "7",
485  "MatchPlural" => "7",
486  "MatchSubject" => "7",
487  "Menu" => "7",
488  "Message" => "7",
489  "MovePlayer" => "7",
490  "mod" => "7",
491  "NumberWord" => "7",
492  "ObjectIs" => "7",
493  "ObjectisKnown" => "7",
494  "ObjectisLight" => "7",
495  "ObjWord" => "7",
496  "Parse" => "7",
497  "ParseError" => "7",
498  "PauseScript" => "7",
499  "PreParse" => "7",
500  "PrintEndGame" => "7",
501  "PrintScore" => "7",
502  "pow" => "7",
503  "PrintStatusLine" => "7",
504  "PropertyList" => "7",
505  "PutInScope" => "7",
506  "RemoveFromScope" => "7",
507  "ResumeScript" => "7",
508  "RunScripts" => "7",
509  "Script" => "7",
510  "SetObjWord" => "7",
511  "ShortDescribe" => "7",
512  "SpecialDesc" => "7",
513  "SkipScript" => "7",
514  "SpeakTo" => "7",
515  "StringPrint" => "7",
516  "StringCompare" => "7",
517  "StringCopy" => "7",
518  "StringDictCompare" => "7",
519  "StringEqual" => "7",
520  "StringLength" => "7",
521  "The" => "7",
522  "WhatsIn" => "7",
523  "YesOrNo" => "7",
524  "#" => "8",
525  "NO_" => "8",
526  "clear" => "8",
527  "defined" => "8",
528  "error" => "8",
529  "set" => "8",
530  "undefined" => "8",
531  "warning" => "8");
532 
533  // Special extensions
534 
535  // Each category can specify a PHP function that returns an altered
536  // version of the keyword.
537 
538 
539 
540  $this->linkscripts = array(
541  "" => "donothing",
542  "1" => "donothing",
543  "2" => "donothing",
544  "3" => "donothing",
545  "4" => "donothing",
546  "5" => "donothing",
547  "8" => "donothing",
548  "6" => "donothing",
549  "7" => "donothing");
550  }
Create styles array
The data for the language used.
Definition: HFile.php:21

The documentation for this class was generated from the following file: