ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_wdl.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_wdl extends HFile
8  {
9  public function HFile_wdl()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14 //
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("brown", "blue", "purple", "gray", "brown", "blue", "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  "/L10" => "",
50  "\"Acknex" => "",
51  "WDL" => "",
52  "V3.9\"" => "",
53  "Nocase" => "",
54  "Line" => "",
55  "Comment" => "",
56  "=" => "8",
57  "#" => "",
58  "Block" => "",
59  "On" => "",
60  "/*" => "",
61  "Off" => "",
62  "*/" => "",
63  "String" => "",
64  "Chars" => "",
65  "\"" => "",
66  "File" => "",
67  "Extensions" => "",
68  "wdl" => "",
69  "albedo" => "1",
70  "ambient" => "1",
71  "angle" => "1",
72  "aspeed" => "1",
73  "attach" => "1",
74  "below" => "1",
75  "bmaps" => "1",
76  "bullet" => "1",
77  "button" => "1",
78  "ceil_angle" => "1",
79  "ceil_hgt" => "1",
80  "ceil_texclip_dist" => "1",
81  "cycle" => "1",
82  "cycles" => "1",
83  "delay" => "1",
84  "default" => "1",
85  "digits" => "1",
86  "dist" => "1",
87  "distance" => "1",
88  "each_cycle" => "1",
89  "each_tick" => "1",
90  "flags" => "1",
91  "floor_angle" => "1",
92  "floor_hgt" => "1",
93  "floor_offs_x" => "1",
94  "floor_offs_y" => "1",
95  "floor_tex" => "1",
96  "follow" => "1",
97  "font" => "1",
98  "frame" => "1",
99  "genius" => "1",
100  "global" => "1",
101  "hbar" => "1",
102  "height" => "1",
103  "here" => "1",
104  "hit" => "1",
105  "hold" => "1",
106  "hslider" => "1",
107  "if_arise" => "1",
108  "if_arived" => "1",
109  "if_dive" => "1",
110  "if_enter" => "1",
111  "if_far" => "1",
112  "if_hit" => "1",
113  "if_klick" => "1",
114  "if_leave" => "1",
115  "if_near" => "1",
116  "if_touch" => "1",
117  "if_release" => "1",
118  "index" => "1",
119  "layer" => "1",
120  "left" => "1",
121  "length" => "1",
122  "local" => "1",
123  "map_color" => "1",
124  "max" => "1",
125  "min" => "1",
126  "mirror" => "1",
127  "move" => "1",
128  "msprite" => "1",
129  "my" => "1",
130  "node1" => "1",
131  "node2" => "1",
132  "null" => "1",
133  "offset_x" => "1",
134  "offset_y" => "1",
135  "ovlys" => "1",
136  "palfile" => "1",
137  "player" => "1",
138  "pan_map" => "1",
139  "picture" => "1",
140  "pos_x" => "1",
141  "pos_y" => "1",
142  "position" => "1",
143  "radiance" => "1",
144  "random" => "1",
145  "range" => "1",
146  "rel_angle" => "1",
147  "rel_dist" => "1",
148  "repel" => "1",
149  "right" => "1",
150  "scale_x" => "1",
151  "scale_y" => "1",
152  "scycles" => "1",
153  "sdist" => "1",
154  "sides" => "1",
155  "size_x" => "1",
156  "size_y" => "1",
157  "skill1" => "1",
158  "skill2" => "1",
159  "skill3" => "1",
160  "skill4" => "1",
161  "skill5" => "1",
162  "skill6" => "1",
163  "skill7" => "1",
164  "skill8" => "1",
165  "speed" => "1",
166  "stick" => "1",
167  "strings" => "1",
168  "svdist" => "1",
169  "svol" => "1",
170  "target" => "1",
171  "target_x" => "1",
172  "target_y" => "1",
173  "there" => "1",
174  "title" => "1",
175  "top" => "1",
176  "touch" => "1",
177  "touch_tex" => "1",
178  "touch_text" => "1",
179  "touch_reg" => "1",
180  "touched" => "1",
181  "type" => "1",
182  "val" => "1",
183  "vbar" => "1",
184  "vertex" => "1",
185  "view" => "1",
186  "vslider" => "1",
187  "vspeed" => "1",
188  "waypoint" => "1",
189  "window" => "1",
190  "x1" => "1",
191  "x2" => "1",
192  "y1" => "1",
193  "y2" => "1",
194  "z1" => "1",
195  "z2" => "1",
196  ".x" => "1",
197  ".y" => "1",
198  "abs" => "2",
199  "accel" => "2",
200  "acos" => "2",
201  "add" => "2",
202  "addt" => "2",
203  "add_string" => "2",
204  "and" => "2",
205  "asin" => "2",
206  "beep" => "2",
207  "branch" => "2",
208  "break" => "2",
209  "call" => "2",
210  "continue" => "2",
211  "cos" => "2",
212  "drop" => "2",
213  "else" => "2",
214  "end" => "2",
215  "exclusive" => "2",
216  "exit" => "2",
217  "exp" => "2",
218  "explode" => "2",
219  "fade_pal" => "2",
220  "find" => "2",
221  "freeze" => "2",
222  "getmidi" => "2",
223  "goto" => "2",
224  "if" => "2",
225  "if_start" => "2",
226  "if_load" => "2",
227  "if_left" => "2",
228  "if_middle" => "2",
229  "if_right" => "2",
230  "if_mstop" => "2",
231  "if_anykey" => "2",
232  "if_f1" => "2",
233  "if_f2" => "2",
234  "if_f3" => "2",
235  "if_f4" => "2",
236  "if_f5" => "2",
237  "if_f6" => "2",
238  "if_f7" => "2",
239  "if_f8" => "2",
240  "if_f9" => "2",
241  "if_f10" => "2",
242  "if_f11" => "2",
243  "if_f12" => "2",
244  "if_esc" => "2",
245  "if_tab" => "2",
246  "if_ctrl" => "2",
247  "if_alt" => "2",
248  "if_space" => "2",
249  "if_bksp" => "2",
250  "if_cuu" => "2",
251  "if_cud" => "2",
252  "if_cur" => "2",
253  "if_cul" => "2",
254  "if_pgup" => "2",
255  "if_pgdn" => "2",
256  "if_home" => "2",
257  "if_end" => "2",
258  "if_ins" => "2",
259  "if_del" => "2",
260  "if_pause" => "2",
261  "if_car" => "2",
262  "if_cal" => "2",
263  "if_plus" => "2",
264  "if_minus" => "2",
265  "if_0" => "2",
266  "if_1" => "2",
267  "if_2" => "2",
268  "if_3" => "2",
269  "if_4" => "2",
270  "if_5" => "2",
271  "if_6" => "2",
272  "if_7" => "2",
273  "if_8" => "2",
274  "if_9" => "2",
275  "if_a" => "2",
276  "if_b" => "2",
277  "if_c" => "2",
278  "if_d" => "2",
279  "if_e" => "2",
280  "if_f" => "2",
281  "if_g" => "2",
282  "if_h" => "2",
283  "if_i" => "2",
284  "if_j" => "2",
285  "if_k" => "2",
286  "if_l" => "2",
287  "if_m" => "2",
288  "if_n" => "2",
289  "if_o" => "2",
290  "if_p" => "2",
291  "if_q" => "2",
292  "if_r" => "2",
293  "if_s" => "2",
294  "if_t" => "2",
295  "if_u" => "2",
296  "if_v" => "2",
297  "if_w" => "2",
298  "if_x" => "2",
299  "if_y" => "2",
300  "if_z" => "2",
301  "if_above" => "2",
302  "if_below" => "2",
303  "if_equal" => "2",
304  "if_min" => "2",
305  "if_max" => "2",
306  "inkey" => "2",
307  "inport" => "2",
308  "int" => "2",
309  "level" => "2",
310  "lift" => "2",
311  "load" => "2",
312  "load_info" => "2",
313  "locate" => "2",
314  "log" => "2",
315  "log2" => "2",
316  "log10" => "2",
317  "map" => "2",
318  "midicom" => "2",
319  "next_my" => "2",
320  "next_there" => "2",
321  "next_my_there" => "2",
322  "outport" => "2",
323  "play_cd" => "2",
324  "play_demo" => "2",
325  "play_flic" => "2",
326  "play_flicfile" => "2",
327  "play_sound" => "2",
328  "play_song" => "2",
329  "play_song_once" => "2",
330  "play_soundfile" => "2",
331  "print_string" => "2",
332  "print_value" => "2",
333  "printfile" => "2",
334  "push" => "2",
335  "rotate" => "2",
336  "rule" => "2",
337  "save_demo" => "2",
338  "save_info" => "2",
339  "screenshot" => "2",
340  "set" => "2",
341  "set_all" => "2",
342  "set_info" => "2",
343  "set_skill" => "2",
344  "set_string" => "2",
345  "setmidi" => "2",
346  "shake" => "2",
347  "shift" => "2",
348  "shoot" => "2",
349  "sign" => "2",
350  "sin" => "2",
351  "sqrt" => "2",
352  "stop_demo" => "2",
353  "stop_flic" => "2",
354  "stop_sound" => "2",
355  "tan" => "2",
356  "tilt" => "2",
357  "to_string" => "2",
358  "wait" => "2",
359  "waitt" => "2",
360  "while" => "2",
361  "abspos" => "3",
362  "autorange" => "3",
363  "base" => "3",
364  "behind" => "3",
365  "berkeley" => "3",
366  "blur" => "3",
367  "candelaber" => "3",
368  "carefully" => "3",
369  "ceil_ascend" => "3",
370  "ceil_descend" => "3",
371  "center_x" => "3",
372  "center_y" => "3",
373  "clip" => "3",
374  "cluster" => "3",
375  "condensed" => "3",
376  "curtain" => "3",
377  "diaphanous" => "3",
378  "far" => "3",
379  "fence" => "3",
380  "flag1" => "3",
381  "flag2" => "3",
382  "flag3" => "3",
383  "flag4" => "3",
384  "flag5" => "3",
385  "flag6" => "3",
386  "flag7" => "3",
387  "flag8" => "3",
388  "floor_ascend" => "3",
389  "floor_descend" => "3",
390  "fragile" => "3",
391  "ghost" => "3",
392  "ground" => "3",
393  "hard" => "3",
394  "immaterial" => "3",
395  "impassable" => "3",
396  "invisible" => "3",
397  "liber" => "3",
398  "lightmap" => "3",
399  "master" => "3",
400  "moved" => "3",
401  "narrow" => "3",
402  "no_clip" => "3",
403  "oneshot" => "3",
404  "passable" => "3",
405  "play" => "3",
406  "portcullis" => "3",
407  "refresh" => "3",
408  "relpos" => "3",
409  "save" => "3",
410  "save_all" => "3",
411  "seen" => "3",
412  "sensitive" => "3",
413  "shadow" => "3",
414  "sky" => "3",
415  "sloop" => "3",
416  "sticky" => "3",
417  "transparent" => "3",
418  "visible" => "3",
419  "wire" => "3",
420  "acceleration" => "4",
421  "active_nexus" => "4",
422  "active_targets" => "4",
423  "actor_ceil_hgt" => "4",
424  "actor_climb" => "4",
425  "actor_dist" => "4",
426  "actor_floor_hgt" => "4",
427  "actor_impact_vx" => "4",
428  "actor_impact_vy" => "4",
429  "actor_impact_vz" => "4",
430  "actor_width" => "4",
431  "aspect" => "4",
432  "blur_mode" => "4",
433  "bounce_vx" => "4",
434  "bounce_vy" => "4",
435  "cd_track" => "4",
436  "cdaudio_vol" => "4",
437  "channel" => "4",
438  "channel_0" => "4",
439  "channel_1" => "4",
440  "channel_2" => "4",
441  "channel_3" => "4",
442  "channel_4" => "4",
443  "channel_5" => "4",
444  "channel_6" => "4",
445  "channel_7" => "4",
446  "clipping" => "4",
447  "color_actors" => "4",
448  "color_border" => "4",
449  "color_player" => "4",
450  "color_things" => "4",
451  "color_walls" => "4",
452  "dark_dist" => "4",
453  "debug_mode" => "4",
454  "delta_angle" => "4",
455  "error" => "4",
456  "eye_dist" => "4",
457  "flic_frame" => "4",
458  "force_ahead" => "4",
459  "force_rot" => "4",
460  "force_strafe" => "4",
461  "force_tilt" => "4",
462  "force_up" => "4",
463  "friction" => "4",
464  "hit_dist" => "4",
465  "hit_mindist" => "4",
466  "hit_x" => "4",
467  "hit_y" => "4",
468  "impact_vx" => "4",
469  "impact_vy" => "4",
470  "impact_vz" => "4",
471  "impact_vrot" => "4",
472  "inertia" => "4",
473  "joy_4" => "4",
474  "joy_sense" => "4",
475  "joystick_x" => "4",
476  "joystick_y" => "4",
477  "key_any" => "4",
478  "key_sense" => "4",
479  "key_f1" => "4",
480  "key_f2" => "4",
481  "key_f3" => "4",
482  "key_f4" => "4",
483  "key_f5" => "4",
484  "key_f6" => "4",
485  "key_f7" => "4",
486  "key_f8" => "4",
487  "key_f9" => "4",
488  "key_f10" => "4",
489  "key_f11" => "4",
490  "key_f12" => "4",
491  "key_esc" => "4",
492  "key_tab" => "4",
493  "key_shift" => "4",
494  "key_ctrl" => "4",
495  "key_alt" => "4",
496  "key_space" => "4",
497  "key_bksp" => "4",
498  "key_cuu" => "4",
499  "key_cud" => "4",
500  "key_cur" => "4",
501  "key_cul" => "4",
502  "key_pgup" => "4",
503  "key_pgdn" => "4",
504  "key_home" => "4",
505  "key_end" => "4",
506  "key_ins" => "4",
507  "key_del" => "4",
508  "key_pause" => "4",
509  "key_car" => "4",
510  "key_cal" => "4",
511  "key_plus" => "4",
512  "key_minus" => "4",
513  "key_enter" => "4",
514  "key_1" => "4",
515  "key_2" => "4",
516  "key_3" => "4",
517  "key_4" => "4",
518  "key_5" => "4",
519  "key_6" => "4",
520  "key_7" => "4",
521  "key_8" => "4",
522  "key_9" => "4",
523  "key_0" => "4",
524  "key_a" => "4",
525  "key_b" => "4",
526  "key_c" => "4",
527  "key_d" => "4",
528  "key_e" => "4",
529  "key_f" => "4",
530  "key_g" => "4",
531  "key_h" => "4",
532  "key_i" => "4",
533  "key_j" => "4",
534  "key_k" => "4",
535  "key_l" => "4",
536  "key_m" => "4",
537  "key_n" => "4",
538  "key_o" => "4",
539  "key_p" => "4",
540  "key_q" => "4",
541  "key_r" => "4",
542  "key_s" => "4",
543  "key_t" => "4",
544  "key_u" => "4",
545  "key_v" => "4",
546  "key_w" => "4",
547  "key_x" => "4",
548  "key_y" => "4",
549  "key_z" => "4",
550  "light_dist" => "4",
551  "lines" => "4",
552  "load_mode" => "4",
553  "map_centerx" => "4",
554  "map_centery" => "4",
555  "map_edge_x1" => "4",
556  "map_edge_x2" => "4",
557  "map_edge_y1" => "4",
558  "map_edge_y2" => "4",
559  "map_layer" => "4",
560  "map_maxx" => "4",
561  "map_maxy" => "4",
562  "map_minx" => "4",
563  "map_miny" => "4",
564  "map_mode" => "4",
565  "map_offsx" => "4",
566  "map_offsy" => "4",
567  "map_rot" => "4",
568  "map_scale" => "4",
569  "max_dist" => "4",
570  "mickey_x" => "4",
571  "mickey_y" => "4",
572  "motion_blur" => "4",
573  "mouse_angle" => "4",
574  "mouse_calm" => "4",
575  "mouse_left" => "4",
576  "mouse_middle" => "4",
577  "mouse_mode" => "4",
578  "mouse_moving" => "4",
579  "mouse_right" => "4",
580  "mouse_sense" => "4",
581  "mouse_time" => "4",
582  "mouse_x" => "4",
583  "mouse_y" => "4",
584  "move_angle" => "4",
585  "move_mode" => "4",
586  "music_vol" => "4",
587  "player_angle" => "4",
588  "player_arc" => "4",
589  "player_climb" => "4",
590  "player_cos" => "4",
591  "player_depth" => "4",
592  "player_hgt" => "4",
593  "player_last_x" => "4",
594  "player_last_y" => "4",
595  "player_light" => "4",
596  "player_sin" => "4",
597  "player_size" => "4",
598  "player_speed" => "4",
599  "player_tilt" => "4",
600  "player_vrot" => "4",
601  "player_vx" => "4",
602  "player_vy" => "4",
603  "player_vz" => "4",
604  "player_width" => "4",
605  "player_x" => "4",
606  "player_y" => "4",
607  "player_z" => "4",
608  "psound_tone" => "4",
609  "psound_vol" => "4",
610  "remode_0" => "4",
611  "remode_1" => "4",
612  "render_mode" => "4",
613  "result" => "4",
614  "screen_hgt" => "4",
615  "screen_width" => "4",
616  "screen_x" => "4",
617  "screen_y" => "4",
618  "secs" => "4",
619  "shift_sense" => "4",
620  "shoot_angle" => "4",
621  "shoot_fac" => "4",
622  "shoot_range" => "4",
623  "shoot_sector" => "4",
624  "shoot_x" => "4",
625  "shoot_y" => "4",
626  "skip_frames" => "4",
627  "sky_offs_x" => "4",
628  "sky_offs_y" => "4",
629  "slope_ahead" => "4",
630  "slope_side" => "4",
631  "slope_x" => "4",
632  "slope_y" => "4",
633  "sound_vol" => "4",
634  "steps" => "4",
635  "str_len" => "4",
636  "ticks" => "4",
637  "time_corr" => "4",
638  "time_fac" => "4",
639  "thing_dist" => "4",
640  "thing_width" => "4",
641  "touch_dist" => "4",
642  "touch_mode" => "4",
643  "touch_state" => "4",
644  "walk" => "4",
645  "walk_period" => "4",
646  "walk_time" => "4",
647  "wave" => "4",
648  "wave_period" => "4",
649  "action" => "5",
650  "actor" => "5",
651  "bmap" => "5",
652  "flic" => "5",
653  "mapfile" => "5",
654  "model" => "5",
655  "music" => "5",
656  "overlay" => "5",
657  "ovly" => "5",
658  "panel" => "5",
659  "region" => "5",
660  "skill" => "5",
661  "sound" => "5",
662  "string" => "5",
663  "synonym" => "5",
664  "text" => "5",
665  "texture" => "5",
666  "thing" => "5",
667  "wall" => "5",
668  "way" => "5",
669  "define" => "6",
670  "endif" => "6",
671  "ifdef" => "6",
672  "ifelse" => "6",
673  "ifndef" => "6",
674  "undefine" => "6",
675  "bind" => "7",
676  "clip_dist" => "7",
677  "dither" => "7",
678  "drumbank" => "7",
679  "ibank" => "7",
680  "include" => "7",
681  "light_angle" => "7",
682  "mabfile" => "7",
683  "midi_pitch" => "7",
684  "nexus" => "7",
685  "path" => "7",
686  "savedir" => "7",
687  "video" => "7",
688  "+" => "8",
689  "-" => "8",
690  "/" => "8",
691  "%" => "8",
692  "&" => "8",
693  ">" => "8",
694  "<" => "8",
695  "^" => "8",
696  "!" => "8",
697  "|" => "8",
698  "*" => "8");
699 
700  // Special extensions
701 
702  // Each category can specify a PHP function that returns an altered
703  // version of the keyword.
704 
705 
706 
707  $this->linkscripts = array(
708  "" => "donothing",
709  "8" => "donothing",
710  "1" => "donothing",
711  "2" => "donothing",
712  "3" => "donothing",
713  "4" => "donothing",
714  "5" => "donothing",
715  "6" => "donothing",
716  "7" => "donothing");
717  }
718 
719 
720  public function donothing($keywordin)
721  {
722  return $keywordin;
723  }
724  }
donothing($keywordin)
Definition: HFile_wdl.php:720
$BEAUT_PATH
Definition: HFile_wdl.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21
HFile_wdl()
Definition: HFile_wdl.php:9