• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

syntax_highlight/php/HFile/HFile_lpc.php

Go to the documentation of this file.
00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005   class HFile_lpc extends HFile{
00006    function HFile_lpc(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // LPC
00011 /*************************************/
00012 // Flags
00013 
00014 $this->nocase                   = "0";
00015 $this->notrim                   = "0";
00016 $this->perl                     = "0";
00017 
00018 // Colours
00019 
00020 $this->colours          = array("blue", "purple", "gray", "brown", "blue", "purple", "gray");
00021 $this->quotecolour              = "blue";
00022 $this->blockcommentcolour       = "green";
00023 $this->linecommentcolour        = "green";
00024 
00025 // Indent Strings
00026 
00027 $this->indent                   = array("{");
00028 $this->unindent                 = array("}");
00029 
00030 // String characters and delimiters
00031 
00032 $this->stringchars              = array("\"");
00033 $this->delimiters               = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "[", "]", "{", "}", "-", "+", "=", "|", "\\", "/", ":", ";", "\"", "'", "<", ">", " ", ",", "      ", ".", "?");
00034 $this->escchar                  = "";
00035 
00036 // Comment settings
00037 
00038 $this->linecommenton            = array("//");
00039 $this->blockcommenton           = array("/*");
00040 $this->blockcommentoff          = array("*/");
00041 
00042 // Keywords (keyword mapping to colour number)
00043 
00044 $this->keywords                 = array(
00045                         "array" => "1", 
00046                         "class" => "1", 
00047                         "double" => "1", 
00048                         "float" => "1", 
00049                         "function" => "1", 
00050                         "int" => "1", 
00051                         "mixed" => "1", 
00052                         "mapping" => "1", 
00053                         "nomask" => "1", 
00054                         "object" => "1", 
00055                         "public" => "1", 
00056                         "private" => "1", 
00057                         "static" => "1", 
00058                         "string" => "1", 
00059                         "void" => "1", 
00060                         "varargs" => "1", 
00061                         "break" => "2", 
00062                         "case" => "2", 
00063                         "continue" => "2", 
00064                         "default" => "2", 
00065                         "do" => "2", 
00066                         "else" => "2", 
00067                         "for" => "2", 
00068                         "foreach" => "2", 
00069                         "if" => "2", 
00070                         "in" => "2", 
00071                         "return" => "2", 
00072                         "switch" => "2", 
00073                         "while" => "2", 
00074                         "abs" => "3", 
00075                         "absolute_path" => "3", 
00076                         "adlog_file" => "3", 
00077                         "adminlist" => "3", 
00078                         "adminp" => "3", 
00079                         "arch" => "3", 
00080                         "assure_save_dir" => "3", 
00081                         "assure_user_save_dir" => "3", 
00082                         "base_name" => "3", 
00083                         "cat" => "3", 
00084                         "clone_object" => "4", 
00085                         "creator_file" => "3", 
00086                         "data_dir" => "3", 
00087                         "data_file" => "3", 
00088                         "debug_info" => "4", 
00089                         "directory_exists" => "3", 
00090                         "exclude_array" => "3", 
00091                         "exclude_element" => "3", 
00092                         "exec" => "3", 
00093                         "expand" => "3", 
00094                         "export_uid" => "4", 
00095                         "extract" => "3", 
00096                         "file_exists" => "3", 
00097                         "filter" => "4", 
00098                         "find_items" => "3", 
00099                         "find_short" => "3", 
00100                         "first_inventory" => "3", 
00101                         "format_string" => "3", 
00102                         "format_time" => "3", 
00103                         "get_logdir" => "3", 
00104                         "get_logdir_logname" => "3", 
00105                         "get_logfile" => "3", 
00106                         "get_object" => "3", 
00107                         "get_objects" => "3", 
00108                         "getoid" => "3", 
00109                         "gettype" => "3", 
00110                         "hiddenp" => "3", 
00111                         "identify" => "3", 
00112                         "int_string" => "3", 
00113                         "intl_date_stamp" => "3", 
00114                         "log_file" => "3", 
00115                         "max" => "3", 
00116                         "maxelt" => "3", 
00117                         "min" => "3", 
00118                         "minelt" => "3", 
00119                         "mkdirs" => "3", 
00120                         "mud_name" => "3", 
00121                         "mud_port" => "3", 
00122                         "mudlib_name" => "3", 
00123                         "mudlib_version" => "3", 
00124                         "next_inventory" => "3", 
00125                         "objective" => "3", 
00126                         "possessive" => "3", 
00127                         "ppossessive" => "3", 
00128                         "previous_living" => "3", 
00129                         "process_string" => "3", 
00130                         "process_value" => "3", 
00131                         "query_snoop" => "3", 
00132                         "query_snooping" => "3", 
00133                         "reduce_to_tilde_path" => "3", 
00134                         "seniorlist" => "3", 
00135                         "seniorp" => "3", 
00136                         "set_default_fail_msg" => "3", 
00137                         "set_eval_limit" => "4", 
00138                         "shadowp" => "3", 
00139                         "shutdown" => "3", 
00140                         "snoop" => "3", 
00141                         "sorted_inventory" => "3", 
00142                         "strtype" => "3", 
00143                         "subjective" => "3", 
00144                         "sumofarr" => "3", 
00145                         "tail" => "3", 
00146                         "temp_file" => "3", 
00147                         "testcharp" => "3", 
00148                         "transfer" => "3", 
00149                         "trim_spaces" => "3", 
00150                         "trimpath" => "3", 
00151                         "uniq_array" => "3", 
00152                         "update_file" => "3", 
00153                         "user_data_dir" => "3", 
00154                         "user_data_file" => "3", 
00155                         "user_path" => "3", 
00156                         "userp" => "3", 
00157                         "version" => "3", 
00158                         "wizardp" => "3", 
00159                         "wrap" => "3", 
00160                         "write_log_file" => "3", 
00161                         "allocate" => "4", 
00162                         "allocate_buffer" => "4", 
00163                         "acos" => "4", 
00164                         "asin" => "4", 
00165                         "atan" => "4", 
00166                         "add_action" => "4", 
00167                         "allocate_mapping" => "4", 
00168                         "arrayp" => "4", 
00169                         "author_stats" => "4", 
00170                         "all_inventory" => "4", 
00171                         "all_previous_objects" => "4", 
00172                         "bind" => "4", 
00173                         "bufferp" => "4", 
00174                         "crc32" => "4", 
00175                         "call_other" => "4", 
00176                         "call_out" => "4", 
00177                         "call_stack" => "4", 
00178                         "catch" => "4", 
00179                         "cp" => "4", 
00180                         "ceil" => "4", 
00181                         "cos" => "4", 
00182                         "copy" => "4", 
00183                         "command" => "4", 
00184                         "commands" => "4", 
00185                         "cache_stats" => "4", 
00186                         "classp" => "4", 
00187                         "children" => "4", 
00188                         "clonep" => "4", 
00189                         "capitalize" => "4", 
00190                         "clear_bit" => "4", 
00191                         "crypt" => "4", 
00192                         "call_out_info" => "4", 
00193                         "check_memory" => "4", 
00194                         "ctime" => "4", 
00195                         "disable_commands" => "4", 
00196                         "disable_wizard" => "4", 
00197                         "debugmalloc" => "4", 
00198                         "dump_file_descriptors" => "4", 
00199                         "dump_prog" => "4", 
00200                         "dump_socket_status" => "4", 
00201                         "dumpallobj" => "4", 
00202                         "domain_stats" => "4", 
00203                         "deep_inventory" => "4", 
00204                         "destruct" => "4", 
00205                         "deep_inherit_list" => "4", 
00206                         "evaluate" => "4", 
00207                         "exp" => "4", 
00208                         "ed" => "4", 
00209                         "ed_cmd" => "4", 
00210                         "ed_start" => "4", 
00211                         "enable_commands" => "4", 
00212                         "enable_wizard" => "4", 
00213                         "environment" => "4", 
00214                         "explode" => "4", 
00215                         "error" => "4", 
00216                         "eval_cost" => "4", 
00217                         "external_start" => "4", 
00218                         "filter_array" => "4", 
00219                         "file_length" => "4", 
00220                         "file_name" => "4", 
00221                         "file_size" => "4", 
00222                         "floor" => "4", 
00223                         "function_owner" => "4", 
00224                         "fetch_variable" => "4", 
00225                         "find_player" => "4", 
00226                         "filter_mapping" => "4", 
00227                         "floatp" => "4", 
00228                         "functionp" => "4", 
00229                         "find_living" => "4", 
00230                         "find_object" => "4", 
00231                         "find_call_out" => "4", 
00232                         "flush_messages" => "4", 
00233                         "function_exists" => "4", 
00234                         "function_profile" => "4", 
00235                         "functions" => "4", 
00236                         "generate_source" => "4", 
00237                         "get_dir" => "4", 
00238                         "get_char" => "4", 
00239                         "get_config" => "4", 
00240                         "geteuid" => "4", 
00241                         "getuid" => "4", 
00242                         "heart_beat_info" => "4", 
00243                         "heart_beats" => "4", 
00244                         "in_edit" => "4", 
00245                         "in_input" => "4", 
00246                         "input_to" => "4", 
00247                         "interactive" => "4", 
00248                         "intp" => "4", 
00249                         "implode" => "4", 
00250                         "inherit_list" => "4", 
00251                         "inherits" => "4", 
00252                         "keys" => "4", 
00253                         "link" => "4", 
00254                         "log" => "4", 
00255                         "living" => "4", 
00256                         "livings" => "4", 
00257                         "load_object" => "4", 
00258                         "lower_case" => "4", 
00259                         "localtime" => "4", 
00260                         "lpc_info" => "4", 
00261                         "map_array" => "4", 
00262                         "member_array" => "4", 
00263                         "mkdir" => "4", 
00264                         "map" => "4", 
00265                         "message" => "4", 
00266                         "malloc_status" => "4", 
00267                         "memory_info" => "4", 
00268                         "mud_status" => "4", 
00269                         "map_delete" => "4", 
00270                         "map_mapping" => "4", 
00271                         "match_path" => "4", 
00272                         "mapp" => "4", 
00273                         "master" => "4", 
00274                         "move_object" => "4", 
00275                         "max_eval_cost" => "4", 
00276                         "memory_summary" => "4", 
00277                         "new" => "4", 
00278                         "notify_fail" => "4", 
00279                         "named_livings" => "4", 
00280                         "origin" => "4", 
00281                         "opcprof" => "4", 
00282                         "objectp" => "4", 
00283                         "objects" => "4", 
00284                         "previous_object" => "4", 
00285                         "pow" => "4", 
00286                         "printf" => "4", 
00287                         "pointerp" => "4", 
00288                         "present" => "4", 
00289                         "pluralize" => "4", 
00290                         "program_info" => "4", 
00291                         "query_shadowing" => "4", 
00292                         "query_ed_mode" => "4", 
00293                         "query_host_name" => "4", 
00294                         "query_idle" => "4", 
00295                         "query_ip_name" => "4", 
00296                         "query_ip_number" => "4", 
00297                         "query_ip_port" => "4", 
00298                         "query_notify_fail" => "4", 
00299                         "query_verb" => "4", 
00300                         "query_load_average" => "4", 
00301                         "query_privs" => "4", 
00302                         "query_heart_beat" => "4", 
00303                         "read_buffer" => "4", 
00304                         "remove_call_out" => "4", 
00305                         "remove_shadow" => "4", 
00306                         "read_bytes" => "4", 
00307                         "read_file" => "4", 
00308                         "rename" => "4", 
00309                         "rm" => "4", 
00310                         "rmdir" => "4", 
00311                         "restore_variable" => "4", 
00312                         "receive" => "4", 
00313                         "remove_action" => "4", 
00314                         "remove_interactive" => "4", 
00315                         "resolve" => "4", 
00316                         "refs" => "4", 
00317                         "rusage" => "4", 
00318                         "random" => "4", 
00319                         "reload_object" => "4", 
00320                         "restore_object" => "4", 
00321                         "reg_assoc" => "4", 
00322                         "regexp" => "4", 
00323                         "repeat_string" => "4", 
00324                         "replace_string" => "4", 
00325                         "reclaim_objects" => "4", 
00326                         "replace_program" => "4", 
00327                         "replaceable" => "4", 
00328                         "reset_eval_cost" => "4", 
00329                         "sort_array" => "4", 
00330                         "shadow" => "4", 
00331                         "stat" => "4", 
00332                         "sin" => "4", 
00333                         "sqrt" => "4", 
00334                         "save_variable" => "4", 
00335                         "sizeof" => "4", 
00336                         "store_variable" => "4", 
00337                         "say" => "4", 
00338                         "set_this_player" => "4", 
00339                         "shout" => "4", 
00340                         "set_debug_level" => "4", 
00341                         "set_malloc_mask" => "4", 
00342                         "swap" => "4", 
00343                         "stringp" => "4", 
00344                         "set_author" => "4", 
00345                         "set_light" => "4", 
00346                         "set_living_name" => "4", 
00347                         "set_privs" => "4", 
00348                         "seteuid" => "4", 
00349                         "save_object" => "4", 
00350                         "set_heart_beat" => "4", 
00351                         "set_hide" => "4", 
00352                         "socket_accept" => "4", 
00353                         "socket_acquire" => "4", 
00354                         "socket_address" => "4", 
00355                         "socket_bind" => "4", 
00356                         "socket_close" => "4", 
00357                         "socket_create" => "4", 
00358                         "socket_error" => "4", 
00359                         "socket_listen" => "4", 
00360                         "socket_release" => "4", 
00361                         "socket_write" => "4", 
00362                         "set_bit" => "4", 
00363                         "sprintf" => "4", 
00364                         "sscanf" => "4", 
00365                         "strcmp" => "4", 
00366                         "strlen" => "4", 
00367                         "strsrch" => "4", 
00368                         "set_reset" => "4", 
00369                         "shallow_inherit_list" => "4", 
00370                         "this_object" => "4", 
00371                         "throw" => "4", 
00372                         "tan" => "4", 
00373                         "to_float" => "4", 
00374                         "to_int" => "4", 
00375                         "typeof" => "4", 
00376                         "this_interactive" => "4", 
00377                         "this_player" => "4", 
00378                         "this_user" => "4", 
00379                         "time_expression" => "4", 
00380                         "trace" => "4", 
00381                         "traceprefix" => "4", 
00382                         "tell_object" => "4", 
00383                         "tell_room" => "4", 
00384                         "terminal_colour" => "4", 
00385                         "test_bit" => "4", 
00386                         "time" => "4", 
00387                         "unique_array" => "4", 
00388                         "users" => "4", 
00389                         "unique_mapping" => "4", 
00390                         "undefinedp" => "4", 
00391                         "upper_case" => "4", 
00392                         "uptime" => "4", 
00393                         "values" => "4", 
00394                         "virtualp" => "4", 
00395                         "variables" => "4", 
00396                         "write_buffer" => "4", 
00397                         "write_bytes" => "4", 
00398                         "write_file" => "4", 
00399                         "write" => "4", 
00400                         "inherit" => "5", 
00401                         "#define" => "5", 
00402                         "#include" => "5", 
00403                         "#if" => "5", 
00404                         "#else" => "5", 
00405                         "#ifdef" => "5", 
00406                         "#pragma" => "5", 
00407                         "#endif" => "5", 
00408                         "#ifndef" => "5", 
00409                         "#undef//" => "5", 
00410                         "{" => "6", 
00411                         "}" => "6", 
00412                         "attack" => "7", 
00413                         "add_boost" => "7", 
00414                         "add_hp" => "7", 
00415                         "add_sp" => "7", 
00416                         "add_money" => "7", 
00417                         "add_extra_attack" => "7", 
00418                         "add_name" => "7", 
00419                         "create" => "7", 
00420                         "clear_opponents" => "7", 
00421                         "do_command" => "7", 
00422                         "evade_attack" => "7", 
00423                         "get_weapon" => "7", 
00424                         "heart_beat" => "7", 
00425                         "hit_player" => "7", 
00426                         "hold_attack" => "7", 
00427                         "init" => "7", 
00428                         "load_chat" => "7", 
00429                         "load_a_chat" => "7", 
00430                         "move_living" => "7", 
00431                         "move" => "7", 
00432                         "move_or_destruct" => "7", 
00433                         "notify_died" => "7", 
00434                         "notify_killed" => "7", 
00435                         "notify_softkilled" => "7", 
00436                         "notify_got_hit" => "7", 
00437                         "notify_sold" => "7", 
00438                         "notify_softdied" => "7", 
00439                         "notify_moved" => "7", 
00440                         "query_guild_data" => "7", 
00441                         "query_objective" => "7", 
00442                         "query_opponents" => "7", 
00443                         "query_possessive" => "7", 
00444                         "query_name" => "7", 
00445                         "query_pronoun" => "7", 
00446                         "query_short" => "7", 
00447                         "query_long" => "7", 
00448                         "query_fightable" => "7", 
00449                         "query_use" => "7", 
00450                         "query_ac" => "7", 
00451                         "query_sc" => "7", 
00452                         "query_wc" => "7", 
00453                         "query_hp" => "7", 
00454                         "query_sp" => "7", 
00455                         "query_no_get" => "7", 
00456                         "query_no_drop" => "7", 
00457                         "query_opponent" => "7", 
00458                         "query_npc" => "7", 
00459                         "query_living" => "7", 
00460                         "query_vis" => "7", 
00461                         "query_value" => "7", 
00462                         "query_light" => "7", 
00463                         "query_total_boost" => "7", 
00464                         "query_origin" => "7", 
00465                         "query_level" => "7", 
00466                         "query_str" => "7", 
00467                         "query_dex" => "7", 
00468                         "query_con" => "7", 
00469                         "query_int" => "7", 
00470                         "query_wis" => "7", 
00471                         "query_cha" => "7", 
00472                         "query_protection" => "7", 
00473                         "query_location" => "7", 
00474                         "remove_object" => "7", 
00475                         "receive_object" => "7", 
00476                         "remove_item_boost" => "7", 
00477                         "reset" => "7", 
00478                         "remove_boost" => "7", 
00479                         "remove_extra_short" => "7", 
00480                         "register_notify" => "7", 
00481                         "register_prevent" => "7", 
00482                         "release_object" => "7", 
00483                         "set_ac" => "7", 
00484                         "set_al" => "7", 
00485                         "set_gender" => "7", 
00486                         "set_guild_data" => "7", 
00487                         "set_female" => "7", 
00488                         "set_male" => "7", 
00489                         "set_name" => "7", 
00490                         "set_neuter" => "7", 
00491                         "set_race" => "7", 
00492                         "set_sc" => "7", 
00493                         "set_stats" => "7", 
00494                         "set_value" => "7", 
00495                         "set_wc" => "7", 
00496                         "set_weight" => "7", 
00497                         "set_type" => "7", 
00498                         "set_long" => "7", 
00499                         "set_short" => "7", 
00500                         "set_softkill" => "7", 
00501                         "set_fightable_msg" => "7", 
00502                         "set_weapon" => "7", 
00503                         "set_locations" => "7", 
00504                         "set_location_prob" => "7", 
00505                         "spell_player" => "7", 
00506                         "stop_attack" => "7", 
00507                         "start_attack" => "7", 
00508                         "start_attack_allowed" => "7", 
00509                         "set_immunity" => "7", 
00510                         "set_humanoid" => "7", 
00511                         "set_aggressive" => "7", 
00512                         "second_life" => "7", 
00513                         "set_property" => "7", 
00514                         "set_no_drop" => "7", 
00515                         "set_no_get" => "7", 
00516                         "unregister_notify" => "7", 
00517                         "unregister_prevent" => "7");
00518 
00519 // Special extensions
00520 
00521 // Each category can specify a PHP function that returns an altered
00522 // version of the keyword.
00523         
00524         
00525 
00526 $this->linkscripts      = array(
00527                         "1" => "donothing", 
00528                         "2" => "donothing", 
00529                         "3" => "donothing", 
00530                         "4" => "donothing", 
00531                         "5" => "donothing", 
00532                         "6" => "donothing", 
00533                         "7" => "donothing");
00534 }
00535 
00536 
00537 function donothing($keywordin)
00538 {
00539         return $keywordin;
00540 }
00541 
00542 }?>

Generated on Fri Dec 13 2013 09:06:39 for ILIAS Release_3_4_x_branch .rev 46804 by  doxygen 1.7.1