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_clipper extends HFile{
00006 function HFile_clipper(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "1";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "blue");
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 "accept" => "1",
00046 "append" => "1",
00047 "all" => "1",
00048 "alternate" => "1",
00049 "box" => "1",
00050 "blank" => "1",
00051 "bell" => "1",
00052 "call" => "1",
00053 "cancel" => "1",
00054 "clear" => "1",
00055 "close" => "1",
00056 "commit" => "1",
00057 "continue" => "1",
00058 "copy" => "1",
00059 "count" => "1",
00060 "create" => "1",
00061 "century" => "1",
00062 "color" => "1",
00063 "confirm" => "1",
00064 "console" => "1",
00065 "cursor" => "1",
00066 "delete" => "1",
00067 "dir" => "1",
00068 "display" => "1",
00069 "date" => "1",
00070 "decimals" => "1",
00071 "default" => "1",
00072 "deleted" => "1",
00073 "delimiters" => "1",
00074 "device" => "1",
00075 "eject" => "1",
00076 "erase" => "1",
00077 "extended" => "1",
00078 "epoch" => "1",
00079 "escape" => "1",
00080 "exact" => "1",
00081 "exclusive" => "1",
00082 "file" => "1",
00083 "find" => "1",
00084 "form" => "1",
00085 "from" => "1",
00086 "filter" => "1",
00087 "fixed" => "1",
00088 "format" => "1",
00089 "function" => "1",
00090 "get" => "1",
00091 "gets" => "1",
00092 "go" => "1",
00093 "index" => "1",
00094 "init" => "1",
00095 "input" => "1",
00096 "intensity" => "1",
00097 "join" => "1",
00098 "keyboard" => "1",
00099 "key" => "1",
00100 "label" => "1",
00101 "list" => "1",
00102 "locate" => "1",
00103 "memory" => "1",
00104 "menu" => "1",
00105 "margin" => "1",
00106 "message" => "1",
00107 "note" => "1",
00108 "order" => "1",
00109 "pack" => "1",
00110 "procedure" => "1",
00111 "prompt" => "1",
00112 "path" => "1",
00113 "printer" => "1",
00114 "quit" => "1",
00115 "read" => "1",
00116 "recall" => "1",
00117 "reindex" => "1",
00118 "release" => "1",
00119 "rename" => "1",
00120 "replace" => "1",
00121 "report" => "1",
00122 "restore" => "1",
00123 "run" => "1",
00124 "relation" => "1",
00125 "say" => "1",
00126 "screen" => "1",
00127 "structure" => "1",
00128 "save" => "1",
00129 "seek" => "1",
00130 "select" => "1",
00131 "set" => "1",
00132 "scoreboard" => "1",
00133 "softseek" => "1",
00134 "skip" => "1",
00135 "sort" => "1",
00136 "store" => "1",
00137 "sum" => "1",
00138 "to" => "1",
00139 "typeahead" => "1",
00140 "text" => "1",
00141 "total" => "1",
00142 "type" => "1",
00143 "unique" => "1",
00144 "unlock" => "1",
00145 "update" => "1",
00146 "use" => "1",
00147 "wrap" => "1",
00148 "wait" => "1",
00149 "zap" => "1",
00150 "#define" => "1",
00151 "#error" => "1",
00152 "#include" => "1",
00153 "#elif" => "1",
00154 "#if" => "1",
00155 "#line" => "1",
00156 "#else" => "1",
00157 "#ifdef" => "1",
00158 "#pragma" => "1",
00159 "#endif" => "1",
00160 "#ifndef" => "1",
00161 "#undef" => "1",
00162 "#command" => "1",
00163 "#translate" => "1",
00164 "#stdout" => "1",
00165 "#xcommand" => "1",
00166 "#xtranslate" => "1",
00167 "announce" => "2",
00168 "begin" => "2",
00169 "break" => "2",
00170 "case" => "2",
00171 "declare" => "2",
00172 "do" => "2",
00173 "elseif" => "2",
00174 "else" => "2",
00175 "endif" => "2",
00176 "enddo" => "2",
00177 "end" => "2",
00178 "endcase" => "2",
00179 "exit" => "2",
00180 "external" => "2",
00181 "field" => "2",
00182 "for" => "2",
00183 "if" => "2",
00184 "local" => "2",
00185 "loop" => "2",
00186 "memvar" => "2",
00187 "next" => "2",
00188 "otherwise" => "2",
00189 "parameters" => "2",
00190 "private" => "2",
00191 "public" => "2",
00192 "recover" => "2",
00193 "request" => "2",
00194 "return" => "2",
00195 "sequence" => "2",
00196 "step" => "2",
00197 "static" => "2",
00198 "using" => "2",
00199 "while" => "2",
00200 "with" => "2",
00201 "aadd" => "3",
00202 "abs" => "3",
00203 "achoice" => "3",
00204 "aclone" => "3",
00205 "acopy" => "3",
00206 "adel" => "3",
00207 "adir" => "3",
00208 "aeval" => "3",
00209 "afields" => "3",
00210 "afill" => "3",
00211 "ains" => "3",
00212 "alert" => "3",
00213 "alias" => "3",
00214 "alltrim" => "3",
00215 "altd" => "3",
00216 "array" => "3",
00217 "asc" => "3",
00218 "ascan" => "3",
00219 "asize" => "3",
00220 "asort" => "3",
00221 "at" => "3",
00222 "atail" => "3",
00223 "average" => "3",
00224 "bin2i" => "3",
00225 "bin2l" => "3",
00226 "bin2w" => "3",
00227 "bof" => "3",
00228 "browse" => "3",
00229 "cdow" => "3",
00230 "chr" => "3",
00231 "cmonth" => "3",
00232 "col" => "3",
00233 "colorselect" => "3",
00234 "ctod" => "3",
00235 "curdir" => "3",
00236 "day" => "3",
00237 "dbappend" => "3",
00238 "dbclearfilter" => "3",
00239 "dbclearindex" => "3",
00240 "dbclearrelation" => "3",
00241 "dbcloseall" => "3",
00242 "dbclosearea" => "3",
00243 "dbcommit" => "3",
00244 "dbcommitall" => "3",
00245 "dbcreate" => "3",
00246 "dbcreateindex" => "3",
00247 "dbdelete" => "3",
00248 "dbedit" => "3",
00249 "dbeval" => "3",
00250 "dbf" => "3",
00251 "dbfilter" => "3",
00252 "dbgobottom" => "3",
00253 "dbgoto" => "3",
00254 "dbgotop" => "3",
00255 "dbrecall" => "3",
00256 "dbreindex" => "3",
00257 "dbrelation" => "3",
00258 "dbrselect" => "3",
00259 "dbseek" => "3",
00260 "dbselectarea" => "3",
00261 "dbsetdriver" => "3",
00262 "dbsetfilter" => "3",
00263 "dbsetindex" => "3",
00264 "dbsetorder" => "3",
00265 "dbsetrelation" => "3",
00266 "dbskip" => "3",
00267 "dbstruct" => "3",
00268 "dbunlock" => "3",
00269 "dbunlockall" => "3",
00270 "dbusearea" => "3",
00271 "descend" => "3",
00272 "devout" => "3",
00273 "devoutpict" => "3",
00274 "devpos" => "3",
00275 "directory" => "3",
00276 "diskspace" => "3",
00277 "dispbegin" => "3",
00278 "dispbox" => "3",
00279 "dispcount" => "3",
00280 "dispend" => "3",
00281 "dispout" => "3",
00282 "doserror" => "3",
00283 "dow" => "3",
00284 "dtoc" => "3",
00285 "dtos" => "3",
00286 "empty" => "3",
00287 "eof" => "3",
00288 "errorblock" => "3",
00289 "errorlevel" => "3",
00290 "eval" => "3",
00291 "exp" => "3",
00292 "fclose" => "3",
00293 "fcount" => "3",
00294 "fcreate" => "3",
00295 "ferase" => "3",
00296 "ferror" => "3",
00297 "fieldblock" => "3",
00298 "fieldget" => "3",
00299 "fieldname" => "3",
00300 "fieldpos" => "3",
00301 "fieldput" => "3",
00302 "fieldwblock" => "3",
00303 "fklabel" => "3",
00304 "fkmax" => "3",
00305 "flock" => "3",
00306 "fopen" => "3",
00307 "found" => "3",
00308 "fread" => "3",
00309 "freadstr" => "3",
00310 "frename" => "3",
00311 "fseek" => "3",
00312 "fwrite" => "3",
00313 "getenv" => "3",
00314 "hardcr" => "3",
00315 "header" => "3",
00316 "i2bin" => "3",
00317 "indexext" => "3",
00318 "indexkey" => "3",
00319 "indexord" => "3",
00320 "inkey" => "3",
00321 "int" => "3",
00322 "isalpha" => "3",
00323 "iscolor" => "3",
00324 "isdigit" => "3",
00325 "islower" => "3",
00326 "isprinter" => "3",
00327 "isupper" => "3",
00328 "l2bin" => "3",
00329 "lastkey" => "3",
00330 "lastrec" => "3",
00331 "left" => "3",
00332 "len" => "3",
00333 "log" => "3",
00334 "lower" => "3",
00335 "ltrim" => "3",
00336 "lupdate" => "3",
00337 "max" => "3",
00338 "maxcol" => "3",
00339 "maxrow" => "3",
00340 "memoedit" => "3",
00341 "memoline" => "3",
00342 "memoread" => "3",
00343 "memotran" => "3",
00344 "memowrit" => "3",
00345 "memvarblock" => "3",
00346 "min" => "3",
00347 "mlcount" => "3",
00348 "mlctopos" => "3",
00349 "mlpos" => "3",
00350 "mod" => "3",
00351 "month" => "3",
00352 "mpostolc" => "3",
00353 "neterr" => "3",
00354 "netname" => "3",
00355 "nextkey" => "3",
00356 "nosnow" => "3",
00357 "os" => "3",
00358 "outerr" => "3",
00359 "outstd" => "3",
00360 "pad" => "3",
00361 "pcol" => "3",
00362 "pcount" => "3",
00363 "procline" => "3",
00364 "procname" => "3",
00365 "prow" => "3",
00366 "qout" => "3",
00367 "rat" => "3",
00368 "readexit" => "3",
00369 "readinsert" => "3",
00370 "readkey" => "3",
00371 "readmodal" => "3",
00372 "readvar" => "3",
00373 "reccount" => "3",
00374 "recno" => "3",
00375 "recsize" => "3",
00376 "replicate" => "3",
00377 "restscreen" => "3",
00378 "right" => "3",
00379 "rlock" => "3",
00380 "round" => "3",
00381 "row" => "3",
00382 "rtrim" => "3",
00383 "savescreen" => "3",
00384 "scroll" => "3",
00385 "seconds" => "3",
00386 "setblink" => "3",
00387 "setcancel" => "3",
00388 "setcolor" => "3",
00389 "setcursor" => "3",
00390 "setkey" => "3",
00391 "setmode" => "3",
00392 "setpos" => "3",
00393 "setprc" => "3",
00394 "soundex" => "3",
00395 "space" => "3",
00396 "sqrt" => "3",
00397 "str" => "3",
00398 "strtran" => "3",
00399 "stuff" => "3",
00400 "substr" => "3",
00401 "time" => "3",
00402 "tone" => "3",
00403 "transform" => "3",
00404 "updated" => "3",
00405 "upper" => "3",
00406 "val" => "3",
00407 "valtype" => "3",
00408 "version" => "3",
00409 "word" => "3",
00410 "year" => "3",
00411 "and" => "5",
00412 "not" => "5",
00413 "or" => "5",
00414 "+" => "5",
00415 "-" => "5",
00416 "=" => "5",
00417 "==" => "5",
00418 "//" => "5",
00419 "/" => "5",
00420 "%" => "5",
00421 "$" => "5",
00422 "&" => "5",
00423 ">" => "5",
00424 ">=" => "5",
00425 "<" => "5",
00426 "<=" => "5",
00427 "<>" => "5",
00428 "^" => "5",
00429 "!" => "5",
00430 "!=" => "5",
00431 "|" => "5",
00432 "(" => "5",
00433 ")" => "5",
00434 "*" => "5",
00435 ":" => "5",
00436 ":=" => "5",
00437 "#" => "5",
00438 "?" => "5",
00439 "??" => "5",
00440 "@" => "5",
00441 "[" => "5",
00442 "]" => "5",
00443 "{" => "5",
00444 "}" => "5",
00445 "." => "5");
00446
00447
00448
00449
00450
00451
00452
00453
00454 $this->linkscripts = array(
00455 "1" => "donothing",
00456 "2" => "donothing",
00457 "3" => "donothing",
00458 "5" => "donothing");
00459 }
00460
00461
00462 function donothing($keywordin)
00463 {
00464 return $keywordin;
00465 }
00466
00467 }?>