ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_quake.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_quake extends HFile{
6  function HFile_quake(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Quake2 Config
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", "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  "alias" => "1",
46  "bind" => "1",
47  "condump" => "1",
48  "connect" => "1",
49  "demomap" => "1",
50  "dir" => "1",
51  "download" => "1",
52  "drop" => "1",
53  "echo" => "1",
54  "error" => "1",
55  "exec" => "1",
56  "gamemap" => "1",
57  "give" => "1",
58  "gun_model" => "1",
59  "impulse" => "1",
60  "kick" => "1",
61  "link" => "1",
62  "load" => "1",
63  "map" => "1",
64  "play" => "1",
65  "rcon" => "1",
66  "rcon_address" => "1",
67  "rcon_password" => "1",
68  "record" => "1",
69  "save" => "1",
70  "say" => "1",
71  "say_team" => "1",
72  "serverrecord" => "1",
73  "set" => "1",
74  "setenv" => "1",
75  "setmaster" => "1",
76  "sky" => "1",
77  "sv" => "1",
78  "sv_maplist" => "1",
79  "timelimit" => "1",
80  "timerefresh" => "1",
81  "unbind" => "1",
82  "use" => "1",
83  "wave" => "1",
84  "allow_download" => "2",
85  "allow_download_maps" => "2",
86  "allow_download_models" => "2",
87  "allow_download_players" => "2",
88  "allow_download_sounds" => "2",
89  "cd_nocd" => "2",
90  "cheats" => "2",
91  "cl_autoskins" => "2",
92  "cl_blend" => "2",
93  "cl_entities" => "2",
94  "cl_footsteps" => "2",
95  "cl_gun" => "2",
96  "cl_lights" => "2",
97  "cl_nodelta" => "2",
98  "cl_noskins" => "2",
99  "cl_particles" => "2",
100  "cl_predict" => "2",
101  "cl_run" => "2",
102  "cl_showmiss" => "2",
103  "cl_shownet" => "2",
104  "cl_stats" => "2",
105  "cl_stereo" => "2",
106  "cl_testblend" => "2",
107  "cl_testentities" => "2",
108  "cl_testlights" => "2",
109  "cl_testparticles" => "2",
110  "cl_vwep" => "2",
111  "coop" => "2",
112  "deathmatch" => "2",
113  "debuggraph" => "2",
114  "dedicated" => "2",
115  "developer" => "2",
116  "filterban" => "2",
117  "fixedtime" => "2",
118  "flushmap" => "2",
119  "freelook" => "2",
120  "g_select_empty" => "2",
121  "gender_auto" => "2",
122  "gl_3dlabs_broken" => "2",
123  "gl_allow_software" => "2",
124  "gl_bitdepth" => "2",
125  "gl_clear" => "2",
126  "gl_cull" => "2",
127  "gl_dynamic" => "2",
128  "gl_ext_compiled_vertex_array" => "2",
129  "gl_ext_multitexture" => "2",
130  "gl_ext_palettedtexture" => "2",
131  "gl_ext_pointparameters_ext_swapinterval" => "2",
132  "gl_finish" => "2",
133  "gl_flashblend" => "2",
134  "gl_lightmap" => "2",
135  "gl_lockpvs" => "2",
136  "gl_log" => "2",
137  "gl_monolightmap" => "2",
138  "gl_nobind" => "2",
139  "gl_nosubimage" => "2",
140  "gl_playermip" => "2",
141  "gl_polyblend" => "2",
142  "gl_round_down" => "2",
143  "gl_saturatelightning" => "2",
144  "gl_shadows" => "2",
145  "gl_showtris" => "2",
146  "gl_skymip" => "2",
147  "gl_swapinterval" => "2",
148  "gl_vertex_arrays" => "2",
149  "gl_ztrick" => "2",
150  "in_joystick" => "2",
151  "in_mouse" => "2",
152  "joy_advanced" => "2",
153  "log_stats" => "2",
154  "lookspring" => "2",
155  "lookstrafe" => "2",
156  "m_filter" => "2",
157  "netgraph" => "2",
158  "paused" => "2",
159  "public" => "2",
160  "r_drawentities" => "2",
161  "r_dspeeds" => "2",
162  "r_fullbright" => "2",
163  "r_lerpmodels" => "2",
164  "r_nocull" => "2",
165  "r_norefresh" => "2",
166  "r_novis" => "2",
167  "r_speeds" => "2",
168  "s_initsound" => "2",
169  "s_loadas8bit" => "2",
170  "s_primary" => "2",
171  "s_show" => "2",
172  "s_textsound" => "2",
173  "s_wavonly" => "2",
174  "scr_drawall" => "2",
175  "scr_showpause" => "2",
176  "scr_showturtle" => "2",
177  "showclamp" => "2",
178  "showdrop" => "2",
179  "showpackets" => "2",
180  "showtrace" => "2",
181  "spectator" => "2",
182  "sv_enforcetime" => "2",
183  "sv_noreload" => "2",
184  "sw_allow_modex" => "2",
185  "sw_drawflat" => "2",
186  "sw_draworder" => "2",
187  "sw_polymodelstats" => "2",
188  "sw_reportedgeout" => "2",
189  "sw_reportsurfout" => "2",
190  "sw_stipplealpha" => "2",
191  "sw_surfcacheoverride" => "2",
192  "sw_waterwarp" => "2",
193  "timedemo" => "2",
194  "timegraph" => "2",
195  "vid_fullscreen" => "2",
196  "win_noalttab" => "2",
197  "ALT" => "3",
198  "AUX1" => "3",
199  "AUX10" => "3",
200  "AUX11" => "3",
201  "AUX12" => "3",
202  "AUX13" => "3",
203  "AUX14" => "3",
204  "AUX15" => "3",
205  "AUX16" => "3",
206  "AUX17" => "3",
207  "AUX18" => "3",
208  "AUX19" => "3",
209  "AUX2" => "3",
210  "AUX20" => "3",
211  "AUX21" => "3",
212  "AUX22" => "3",
213  "AUX23" => "3",
214  "AUX24" => "3",
215  "AUX25" => "3",
216  "AUX26" => "3",
217  "AUX27" => "3",
218  "AUX28" => "3",
219  "AUX29" => "3",
220  "AUX3" => "3",
221  "AUX30" => "3",
222  "AUX31" => "3",
223  "AUX32" => "3",
224  "AUX4" => "3",
225  "AUX5" => "3",
226  "AUX6" => "3",
227  "AUX7" => "3",
228  "AUX8" => "3",
229  "AUX9" => "3",
230  "BACKSPACE" => "3",
231  "CTRL" => "3",
232  "DEL" => "3",
233  "DOWNARROW" => "3",
234  "END" => "3",
235  "ENTER" => "3",
236  "F1" => "3",
237  "F10" => "3",
238  "F11" => "3",
239  "F12" => "3",
240  "F2" => "3",
241  "F3" => "3",
242  "F4" => "3",
243  "F5" => "3",
244  "F6" => "3",
245  "F7" => "3",
246  "F8" => "3",
247  "F9" => "3",
248  "HOME" => "3",
249  "INS" => "3",
250  "JOY1" => "3",
251  "JOY2" => "3",
252  "JOY3" => "3",
253  "JOY4" => "3",
254  "KP_5" => "3",
255  "KP_DEL" => "3",
256  "KP_DOWNARROW" => "3",
257  "KP_END" => "3",
258  "KP_ENTER" => "3",
259  "KP_HOME" => "3",
260  "KP_INS" => "3",
261  "KP_LEFTARROW" => "3",
262  "KP_MINUS" => "3",
263  "KP_PGDN" => "3",
264  "KP_PGUP" => "3",
265  "KP_PLUS" => "3",
266  "KP_RIGHTARROW" => "3",
267  "KP_SLASH" => "3",
268  "KP_UPARROW" => "3",
269  "LEFTARROW" => "3",
270  "MOUSE1" => "3",
271  "MOUSE2" => "3",
272  "MOUSE3" => "3",
273  "MWHEELDOWN" => "3",
274  "MWHEELUP" => "3",
275  "PAUSE" => "3",
276  "PGDN" => "3",
277  "PGUP" => "3",
278  "RIGHTARROW" => "3",
279  "SEMICOLON" => "3",
280  "SHIFT" => "3",
281  "SPACE" => "3",
282  "TAB" => "3",
283  "UPARROW" => "3",
284  "adr0" => "4",
285  "adr1" => "4",
286  "adr2" => "4",
287  "adr3" => "4",
288  "adr4" => "4",
289  "adr5" => "4",
290  "adr6" => "4",
291  "adr7" => "4",
292  "adr8" => "4",
293  "bob_pitch" => "4",
294  "bob_roll" => "4",
295  "bob_up" => "4",
296  "cd_loopcount" => "4",
297  "cd_looptrack" => "4",
298  "cl_anglespeedkey" => "4",
299  "cl_forwardspeed" => "4",
300  "cl_maxfps" => "4",
301  "cl_pitchspeed" => "4",
302  "cl_sidespeed" => "4",
303  "cl_stereo_separation" => "4",
304  "cl_timeout" => "4",
305  "cl_upspeed" => "4",
306  "cl_yawspeed" => "4",
307  "clientport" => "4",
308  "con_notifytime" => "4",
309  "crosshair" => "4",
310  "dumpuser" => "4",
311  "flood_msgs" => "4",
312  "flood_persecond" => "4",
313  "flood_waitdelay" => "4",
314  "fov" => "4",
315  "fraglimit" => "4",
316  "gl_mode" => "4",
317  "gl_modulate" => "4",
318  "gl_particle_att_a" => "4",
319  "gl_particle_att_b" => "4",
320  "gl_particle_att_c" => "4",
321  "gl_particle_max_size" => "4",
322  "gl_particle_min_size" => "4",
323  "gl_particle_size" => "4",
324  "gl_picmip" => "4",
325  "graphheight" => "4",
326  "graphscale" => "4",
327  "graphshift" => "4",
328  "gun_x" => "4",
329  "gun_y" => "4",
330  "gun_z" => "4",
331  "game" => "4",
332  "gamedate" => "4",
333  "gamedir" => "4",
334  "gamename" => "4",
335  "gender" => "4",
336  "gl_drawbuffer" => "4",
337  "gl_driver" => "4",
338  "gl_texturerealalphamode" => "4",
339  "gl_texturemode" => "4",
340  "gl_texturesolidmode" => "4",
341  "hand" => "4",
342  "host_speeds" => "4",
343  "hostname" => "4",
344  "hostport" => "4",
345  "intensity" => "4",
346  "ip" => "4",
347  "ip_clientport" => "4",
348  "ip_hostport" => "4",
349  "ipx_clientport" => "4",
350  "ipx_hostport" => "4",
351  "joy_name" => "4",
352  "joy_advancedupdate" => "4",
353  "joy_advaxisx" => "4",
354  "joy_advaxisy" => "4",
355  "joy_advaxisz" => "4",
356  "joy_advaxisr" => "4",
357  "joy_advaxisu" => "4",
358  "joy_advaxisv" => "4",
359  "joy_forwardsensitivity" => "4",
360  "joy_forwardthreshold" => "4",
361  "joy_pitchsensitivity" => "4",
362  "joy_pitchthreshold" => "4",
363  "joy_sidesensitivity" => "4",
364  "joy_sidethreshold" => "4",
365  "joy_upsensitivity" => "4",
366  "joy_upthreshold" => "4",
367  "joy_yawsensitivity" => "4",
368  "joy_yawthreshold" => "4",
369  "logfile" => "4",
370  "m_forward" => "4",
371  "m_pitch" => "4",
372  "m_side" => "4",
373  "m_yaw" => "4",
374  "mapame" => "4",
375  "maxclients" => "4",
376  "maxentities" => "4",
377  "maxspectators" => "4",
378  "msg" => "4",
379  "name" => "4",
380  "netserver" => "4",
381  "password" => "4",
382  "port" => "4",
383  "rate" => "4",
384  "run_pitch" => "4",
385  "run_roll" => "4",
386  "s_khz" => "4",
387  "s_mixahead" => "4",
388  "s_volume" => "4",
389  "scr_centertime" => "4",
390  "scr_conspeed" => "4",
391  "scr_printspeed" => "4",
392  "sensitivity" => "4",
393  "skill" => "4",
394  "skin" => "4",
395  "spectator_password" => "4",
396  "sv_airaccelerate" => "4",
397  "sv_gravity" => "4",
398  "sv_maxvelocity" => "4",
399  "sv_reconnect_limit" => "4",
400  "sw_clearcolor" => "4",
401  "sw_maxedges" => "4",
402  "sw_maxsurfs" => "4",
403  "sw_mipcap" => "4",
404  "sw_mipscale" => "4",
405  "sw_mode" => "4",
406  "timeout" => "4",
407  "timescale" => "4",
408  "v_centermove" => "4",
409  "v_centerspeed" => "4",
410  "vid_gamma" => "4",
411  "vid_ref" => "4",
412  "vid_xpos" => "4",
413  "vid_ypos" => "4",
414  "viewsize" => "4",
415  "zombietime" => "4",
416  "attack" => "5",
417  "back" => "5",
418  "forward" => "5",
419  "klook" => "5",
420  "left" => "5",
421  "lookdown" => "5",
422  "lookup" => "5",
423  "mlook" => "5",
424  "movedown" => "5",
425  "moveleft" => "5",
426  "moveright" => "5",
427  "moveup" => "5",
428  "right" => "5",
429  "speed" => "5",
430  "strafe" => "5",
431  "bindlist" => "6",
432  "centerview" => "6",
433  "changing" => "6",
434  "clear" => "6",
435  "cmdlist" => "6",
436  "cvarlist" => "6",
437  "disconnect" => "6",
438  "god" => "6",
439  "gun_next" => "6",
440  "gun_prev" => "6",
441  "heartbeat" => "6",
442  "imagelist" => "6",
443  "info" => "6",
444  "invdrop" => "6",
445  "inven" => "6",
446  "invnext" => "6",
447  "invnextp" => "6",
448  "invnextw" => "6",
449  "invprev" => "6",
450  "invprevp" => "6",
451  "invprevw" => "6",
452  "invuse" => "6",
453  "kill" => "6",
454  "killserver" => "6",
455  "loading" => "6",
456  "menu_addressbook" => "6",
457  "menu_credits" => "6",
458  "menu_dmoptions" => "6",
459  "menu_game" => "6",
460  "menu_joinserver" => "6",
461  "menu_keys" => "6",
462  "menu_loadgame" => "6",
463  "menu_main" => "6",
464  "menu_multiplayer" => "6",
465  "menu_options" => "6",
466  "menu_playerconfig" => "6",
467  "menu_quit" => "6",
468  "menu_savegame" => "6",
469  "menu_startserver" => "6",
470  "menu_video" => "6",
471  "messagemode" => "6",
472  "messagemode2" => "6",
473  "modelist" => "6",
474  "noclip" => "6",
475  "notarget" => "6",
476  "path" => "6",
477  "pause" => "6",
478  "pingservers" => "6",
479  "playerlist" => "6",
480  "players" => "6",
481  "precache" => "6",
482  "quit" => "6",
483  "reconnect" => "6",
484  "score" => "6",
485  "screenshot" => "6",
486  "serverinfo" => "6",
487  "serverstop" => "6",
488  "sizedown" => "6",
489  "sizeup" => "6",
490  "skins" => "6",
491  "snd_restart" => "6",
492  "soundinfo" => "6",
493  "soundlist" => "6",
494  "status" => "6",
495  "stop" => "6",
496  "stopsound" => "6",
497  "togglconsole" => "6",
498  "togglechat" => "6",
499  "unbindall" => "6",
500  "userinfo" => "6",
501  "vid_front" => "6",
502  "vid_restart" => "6",
503  "viewpos" => "6",
504  "wait" => "6",
505  "weaplast" => "6",
506  "weapnext" => "6",
507  "weapprev" => "6",
508  "z_stats" => "6",
509  "adrenaline" => "7",
510  "airstrike" => "7",
511  "all" => "7",
512  "ammo" => "7",
513  "ancient" => "7",
514  "armor" => "7",
515  "bandolier" => "7",
516  "bfg10k" => "7",
517  "blue" => "7",
518  "bullets" => "7",
519  "cd" => "7",
520  "cells" => "7",
521  "chaingun" => "7",
522  "combat" => "7",
523  "commander\'s" => "7",
524  "cube" => "7",
525  "damage" => "7",
526  "data" => "7",
527  "environment" => "7",
528  "grapple" => "7",
529  "grenade" => "7",
530  "grenades" => "7",
531  "head" => "7",
532  "health" => "7",
533  "hyperblaster" => "7",
534  "invulnerability" => "7",
535  "jacket" => "7",
536  "key" => "7",
537  "launcher" => "7",
538  "machinegun" => "7",
539  "marker" => "7",
540  "pack" => "7",
541  "pass" => "7",
542  "power" => "7",
543  "pyramid" => "7",
544  "quad" => "7",
545  "railgun" => "7",
546  "rebreather" => "7",
547  "red" => "7",
548  "rocket" => "7",
549  "rockets" => "7",
550  "screen" => "7",
551  "security" => "7",
552  "shard" => "7",
553  "shells" => "7",
554  "shield" => "7",
555  "shotgun" => "7",
556  "silencer" => "7",
557  "slugs" => "7",
558  "spinner" => "7",
559  "suit" => "7",
560  "super" => "7");
561 
562 // Special extensions
563 
564 // Each category can specify a PHP function that returns an altered
565 // version of the keyword.
566 
567 
568 
569 $this->linkscripts = array(
570  "1" => "donothing",
571  "2" => "donothing",
572  "3" => "donothing",
573  "4" => "donothing",
574  "5" => "donothing",
575  "6" => "donothing",
576  "7" => "donothing");
577 }
578 
579 
580 function donothing($keywordin)
581 {
582  return $keywordin;
583 }
584 
585 }?>