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_patrol extends HFile{
00006 function HFile_patrol(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array("{");
00028 $this->unindent = array("}");
00029
00030
00031
00032 $this->stringchars = array();
00033 $this->delimiters = array("~", "!", "@", "$", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("#");
00039 $this->blockcommenton = array("");
00040 $this->blockcommentoff = array("");
00041
00042
00043
00044 $this->keywords = array(
00045 "{" => "1",
00046 "else" => "1",
00047 "elsif" => "1",
00048 "exit" => "1",
00049 "export" => "1",
00050 "foreach" => "1",
00051 "function" => "1",
00052 "if" => "1",
00053 "last" => "1",
00054 "local" => "1",
00055 "main" => "1",
00056 "next" => "1",
00057 "requires" => "1",
00058 "return" => "1",
00059 "switch" => "1",
00060 "while" => "1",
00061 "}" => "1",
00062 "acos" => "2",
00063 "annotate" => "2",
00064 "annotate_get" => "2",
00065 "asctime" => "2",
00066 "asin" => "2",
00067 "atan" => "2",
00068 "blackout" => "2",
00069 "cat" => "2",
00070 "ceil" => "2",
00071 "chan_exists" => "2",
00072 "change_state" => "2",
00073 "close" => "2",
00074 "cond_signal" => "2",
00075 "cond_wait" => "2",
00076 "console_type" => "2",
00077 "convert_date" => "2",
00078 "cos" => "2",
00079 "cosh" => "2",
00080 "create" => "2",
00081 "date" => "2",
00082 "debugger" => "2",
00083 "destroy" => "2",
00084 "destroy_lock" => "2",
00085 "difference" => "2",
00086 "event_archive" => "2",
00087 "event_catalog_get" => "2",
00088 "event_check" => "2",
00089 "event_query" => "2",
00090 "event_range_manage" => "2",
00091 "event_range_query" => "2",
00092 "event_report" => "2",
00093 "event_schedule" => "2",
00094 "event_trigger" => "2",
00095 "event_trigger2" => "2",
00096 "execute" => "2",
00097 "exists" => "2",
00098 "exp" => "2",
00099 "fabs" => "2",
00100 "file" => "2",
00101 "floor" => "2",
00102 "fmod" => "2",
00103 "fopen" => "2",
00104 "fseek" => "2",
00105 "ftell" => "2",
00106 "full_discovery" => "2",
00107 "get" => "2",
00108 "get_chan_info" => "2",
00109 "getenv" => "2",
00110 "getpid" => "2",
00111 "get_ranges" => "2",
00112 "get_vars" => "2",
00113 "grep" => "2",
00114 "history" => "2",
00115 "history_get_retention" => "2",
00116 "index" => "2",
00117 "int" => "2",
00118 "internal" => "2",
00119 "intersection" => "2",
00120 "in_transition" => "2",
00121 "isnumber" => "2",
00122 "is_var" => "2",
00123 "kill" => "2",
00124 "length" => "2",
00125 "lines" => "2",
00126 "lock" => "2",
00127 "log" => "2",
00128 "loge" => "2",
00129 "log10" => "2",
00130 "ntharg" => "2",
00131 "nthargf" => "2",
00132 "nthline" => "2",
00133 "nthlinef" => "2",
00134 "num_consoles" => "2",
00135 "pconfig" => "2",
00136 "popen" => "2",
00137 "pow" => "2",
00138 "print" => "2",
00139 "printf" => "2",
00140 "proc_exists" => "2",
00141 "process" => "2",
00142 "Pslexecute" => "2",
00143 "random" => "2",
00144 "read" => "2",
00145 "readln" => "2",
00146 "refresh_parameters" => "2",
00147 "remote_close" => "2",
00148 "remote_event_query" => "2",
00149 "remote_event_trigger" => "2",
00150 "remote_file_send" => "2",
00151 "remote_open" => "2",
00152 "response" => "2",
00153 "response_get_value" => "2",
00154 "rindex" => "2",
00155 "set" => "2",
00156 "share" => "2",
00157 "sin" => "2",
00158 "sinh" => "2",
00159 "sleep" => "2",
00160 "snmp_agent_config" => "2",
00161 "snmp_agent_stop" => "2",
00162 "snmp_close" => "2",
00163 "snmp_config" => "2",
00164 "_snmp_debug" => "2",
00165 "snmp_get" => "2",
00166 "snmp_get_next" => "2",
00167 "snmp_h_get" => "2",
00168 "snmp__h_get_next" => "2",
00169 "snmp_h_set" => "2",
00170 "snmp_open" => "2",
00171 "snmp_set" => "2",
00172 "snmp_trap_ignore" => "2",
00173 "snmp_trap_listen" => "2",
00174 "snmp_trap_raise_std_trap" => "2",
00175 "snmp_trap_receive" => "2",
00176 "snmp_trap_register_im" => "2",
00177 "snmp_trap_send" => "2",
00178 "snmp_walk" => "2",
00179 "sort" => "2",
00180 "sprintf" => "2",
00181 "sqrt" => "2",
00182 "srandom" => "2",
00183 "subset" => "2",
00184 "substr" => "2",
00185 "system" => "2",
00186 "tail" => "2",
00187 "tanh" => "2",
00188 "time" => "2",
00189 "tmpnam" => "2",
00190 "tolower" => "2",
00191 "toupper" => "2",
00192 "trim" => "2",
00193 "union" => "2",
00194 "unique" => "2",
00195 "unlock" => "2",
00196 "unset" => "2",
00197 "va_arg" => "2",
00198 "va_start" => "2",
00199 "write" => "2");
00200
00201
00202
00203
00204
00205
00206
00207
00208 $this->linkscripts = array(
00209 "1" => "donothing",
00210 "2" => "donothing");
00211 }
00212
00213
00214 function donothing($keywordin)
00215 {
00216 return $keywordin;
00217 }
00218
00219 }?>