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_postscript extends HFile{
00006 function HFile_postscript(){
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("brown", "blue", "purple", "gray");
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 "/Escape" => "",
00046 "Char" => "",
00047 "=" => "4",
00048 "\\" => "",
00049 "(" => "1",
00050 ")" => "1",
00051 "begin" => "1",
00052 "bind" => "1",
00053 "def" => "1",
00054 "defineresource" => "1",
00055 "defineuserobject" => "1",
00056 "echo" => "1",
00057 "end" => "1",
00058 "exec" => "1",
00059 "execuserobject" => "1",
00060 "executive" => "1",
00061 "executeonly" => "1",
00062 "exit" => "1",
00063 "filenameforall" => "1",
00064 "for" => "1",
00065 "forall" => "1",
00066 "if" => "1",
00067 "ifelse" => "1",
00068 "loop" => "1",
00069 "noaccess" => "1",
00070 "pathforall" => "1",
00071 "pdfmark" => "1",
00072 "prompt" => "1",
00073 "quit" => "1",
00074 "readonly" => "1",
00075 "repeat" => "1",
00076 "resourceforall" => "1",
00077 "restore" => "1",
00078 "run" => "1",
00079 "save" => "1",
00080 "setglobal" => "1",
00081 "start" => "1",
00082 "startjob" => "1",
00083 "stop" => "1",
00084 "stopped" => "1",
00085 "undef" => "1",
00086 "undefineresource" => "1",
00087 "undefineuserobject" => "1",
00088 "arc" => "2",
00089 "arcn" => "2",
00090 "arct" => "2",
00091 "arcto" => "2",
00092 "ashow" => "2",
00093 "awidthshow" => "2",
00094 "charpath" => "2",
00095 "clip" => "2",
00096 "clippath" => "2",
00097 "cliprestore" => "2",
00098 "clipsave" => "2",
00099 "closepath" => "2",
00100 "colorimage" => "2",
00101 "concat" => "2",
00102 "concatmatrix" => "2",
00103 "copypage" => "2",
00104 "currentblackgeneration" => "2",
00105 "currentcmykcolor" => "2",
00106 "currentcolor" => "2",
00107 "currentcolorrendering" => "2",
00108 "currentcolorscreen" => "2",
00109 "currentcolorspace" => "2",
00110 "currentcolortransfer" => "2",
00111 "currentdash" => "2",
00112 "currentflat" => "2",
00113 "currentgray" => "2",
00114 "currentgstate" => "2",
00115 "currenthalftone" => "2",
00116 "currenthsbcolor" => "2",
00117 "currentlinecap" => "2",
00118 "currentlinejoin" => "2",
00119 "currentlinewidth" => "2",
00120 "currentmiterlimit" => "2",
00121 "currentoverprint" => "2",
00122 "currentpagedevice" => "2",
00123 "currentpoint" => "2",
00124 "currentrgbcolor" => "2",
00125 "currentscreen" => "2",
00126 "currentsmoothness" => "2",
00127 "currentstrokeadjust" => "2",
00128 "currenttransfer" => "2",
00129 "currentundercolorremoval" => "2",
00130 "curveto" => "2",
00131 "composefont" => "2",
00132 "cshow" => "2",
00133 "currentfont" => "2",
00134 "defaultmatrix" => "2",
00135 "dtransform" => "2",
00136 "definefont" => "2",
00137 "eoclip" => "2",
00138 "eofill" => "2",
00139 "erasepage" => "2",
00140 "execform" => "2",
00141 "fill" => "2",
00142 "flattenpath" => "2",
00143 "findencoding" => "2",
00144 "findfont" => "2",
00145 "FontDirectory" => "2",
00146 "grestore" => "2",
00147 "grestoreall" => "2",
00148 "gsave" => "2",
00149 "glyphshow" => "2",
00150 "GlobalFontDirectory" => "2",
00151 "idtransform" => "2",
00152 "ineofill" => "2",
00153 "infill" => "2",
00154 "initclip" => "2",
00155 "initgraphics" => "2",
00156 "identmatrix" => "2",
00157 "initmatrix" => "2",
00158 "instroke" => "2",
00159 "inueofill" => "2",
00160 "inufill" => "2",
00161 "inustroke" => "2",
00162 "invertmatrix" => "2",
00163 "image" => "2",
00164 "imagemask" => "2",
00165 "ISOLatin1Encoding" => "2",
00166 "kshow" => "2",
00167 "lineto" => "2",
00168 "makepattern" => "2",
00169 "moveto" => "2",
00170 "makefont" => "2",
00171 "newpath" => "2",
00172 "nulldevice" => "2",
00173 "pathbox" => "2",
00174 "rcurveto" => "2",
00175 "rectclip" => "2",
00176 "rectfill" => "2",
00177 "rectstroke" => "2",
00178 "reversepath" => "2",
00179 "rlineto" => "2",
00180 "rmoveto" => "2",
00181 "rotate" => "2",
00182 "rootfont" => "2",
00183 "scale" => "2",
00184 "setblackgeneration" => "2",
00185 "setbox" => "2",
00186 "setcmykcolor" => "2",
00187 "setcolor" => "2",
00188 "setcolorrendering" => "2",
00189 "setcolorscreen" => "2",
00190 "setcolorspace" => "2",
00191 "setcolortransfer" => "2",
00192 "setdash" => "2",
00193 "setflat" => "2",
00194 "setgray" => "2",
00195 "setgstate" => "2",
00196 "sethalftone" => "2",
00197 "sethsbcolor" => "2",
00198 "setlinecap" => "2",
00199 "setlinejoin" => "2",
00200 "setlinewidth" => "2",
00201 "setmatrix" => "2",
00202 "setmiterlimit" => "2",
00203 "setoverprint" => "2",
00204 "setpagedevice" => "2",
00205 "setpattern" => "2",
00206 "setrgbcolor" => "2",
00207 "setscreen" => "2",
00208 "setsmoothness" => "2",
00209 "setstrokeadjust" => "2",
00210 "settransfer" => "2",
00211 "shfill" => "2",
00212 "showpage" => "2",
00213 "stroke" => "2",
00214 "strokepath" => "2",
00215 "scalefont" => "2",
00216 "selectfont" => "2",
00217 "setcachedevice" => "2",
00218 "setcachedevice2" => "2",
00219 "setcharwidth" => "2",
00220 "setfont" => "2",
00221 "show" => "2",
00222 "StandardEncoding" => "2",
00223 "stringwidth" => "2",
00224 "transform" => "2",
00225 "translate" => "2",
00226 "uappend" => "2",
00227 "ucache" => "2",
00228 "ueofill" => "2",
00229 "ufill" => "2",
00230 "upath" => "2",
00231 "ustroke" => "2",
00232 "ustrokepath" => "2",
00233 "widthshow" => "2",
00234 "xshow" => "2",
00235 "xyshow" => "2",
00236 "yshow" => "2",
00237 "[" => "3",
00238 "]" => "3",
00239 "<<" => "3",
00240 ">>" => "3",
00241 "$error" => "3",
00242 "aload" => "3",
00243 "anchorsearch" => "3",
00244 "astore" => "3",
00245 "array" => "3",
00246 "abs" => "3",
00247 "add" => "3",
00248 "and" => "3",
00249 "atan" => "3",
00250 "bitshift" => "3",
00251 "copy" => "3",
00252 "currentglobal" => "3",
00253 "currentobjectformat" => "3",
00254 "currentpacking" => "3",
00255 "cvi" => "3",
00256 "cvlit" => "3",
00257 "cvn" => "3",
00258 "cvr" => "3",
00259 "cvrs" => "3",
00260 "cvs" => "3",
00261 "cvx" => "3",
00262 "currentdict" => "3",
00263 "currentfile" => "3",
00264 "currentmatrix" => "3",
00265 "clear" => "3",
00266 "cleardictstack" => "3",
00267 "cleartomark" => "3",
00268 "count" => "3",
00269 "countdictstack" => "3",
00270 "countexecstack" => "3",
00271 "counttomark" => "3",
00272 "ceiling" => "3",
00273 "cos" => "3",
00274 "dict" => "3",
00275 "dictstack" => "3",
00276 "dup" => "3",
00277 "div" => "3",
00278 "errordict" => "3",
00279 "execstack" => "3",
00280 "exch" => "3",
00281 "eq" => "3",
00282 "exp" => "3",
00283 "findcolorrendering" => "3",
00284 "false" => "3",
00285 "file" => "3",
00286 "filter" => "3",
00287 "findresource" => "3",
00288 "floor" => "3",
00289 "gcheck" => "3",
00290 "get" => "3",
00291 "getinterval" => "3",
00292 "globaldict" => "3",
00293 "gstate" => "3",
00294 "ge" => "3",
00295 "gt" => "3",
00296 "index" => "3",
00297 "idiv" => "3",
00298 "known" => "3",
00299 "languagelevel" => "3",
00300 "length" => "3",
00301 "load" => "3",
00302 "le" => "3",
00303 "ln" => "3",
00304 "log" => "3",
00305 "lt" => "3",
00306 "maxlength" => "3",
00307 "matrix" => "3",
00308 "mark" => "3",
00309 "mod" => "3",
00310 "mul" => "3",
00311 "null" => "3",
00312 "ne" => "3",
00313 "neg" => "3",
00314 "not" => "3",
00315 "product" => "3",
00316 "put" => "3",
00317 "putinterval" => "3",
00318 "packedarray" => "3",
00319 "pop" => "3",
00320 "pstack" => "3",
00321 "rcheck" => "3",
00322 "realtime" => "3",
00323 "resourcestatus" => "3",
00324 "revision" => "3",
00325 "roll" => "3",
00326 "rand" => "3",
00327 "rrand" => "3",
00328 "round" => "3",
00329 "search" => "3",
00330 "serialnumber" => "3",
00331 "setobjectformat" => "3",
00332 "setpacking" => "3",
00333 "store" => "3",
00334 "statusdict" => "3",
00335 "string" => "3",
00336 "systemdict" => "3",
00337 "stack" => "3",
00338 "sin" => "3",
00339 "sqrt" => "3",
00340 "srand" => "3",
00341 "sub" => "3",
00342 "token" => "3",
00343 "type" => "3",
00344 "true" => "3",
00345 "truncate" => "3",
00346 "usertime" => "3",
00347 "userdict" => "3",
00348 "UserObjects" => "3",
00349 "version" => "3",
00350 "wcheck" => "3",
00351 "where" => "3",
00352 "xcheck" => "3",
00353 "xor" => "3",
00354 "==" => "4",
00355 "bytesavailable" => "4",
00356 "closefile" => "4",
00357 "deletefile" => "4",
00358 "fileposition" => "4",
00359 "flush" => "4",
00360 "flushfile" => "4",
00361 "print" => "4",
00362 "printobject" => "4",
00363 "read" => "4",
00364 "readhexstring" => "4",
00365 "readline" => "4",
00366 "readstring" => "4",
00367 "renamefile" => "4",
00368 "resetfile" => "4",
00369 "status" => "4",
00370 "write" => "4",
00371 "writehexstring" => "4",
00372 "writeobject" => "4",
00373 "writestring" => "4");
00374
00375
00376
00377
00378
00379
00380
00381
00382 $this->linkscripts = array(
00383 "" => "donothing",
00384 "4" => "donothing",
00385 "1" => "donothing",
00386 "2" => "donothing",
00387 "3" => "donothing");
00388 }
00389
00390
00391 function donothing($keywordin)
00392 {
00393 return $keywordin;
00394 }
00395
00396 }?>