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