ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_postscript.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_postscript extends HFile{
6  function HFile_postscript(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // PostScript
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("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  "/Escape" => "",
46  "Char" => "",
47  "=" => "4",
48  "\\" => "",
49  "(" => "1",
50  ")" => "1",
51  "begin" => "1",
52  "bind" => "1",
53  "def" => "1",
54  "defineresource" => "1",
55  "defineuserobject" => "1",
56  "echo" => "1",
57  "end" => "1",
58  "exec" => "1",
59  "execuserobject" => "1",
60  "executive" => "1",
61  "executeonly" => "1",
62  "exit" => "1",
63  "filenameforall" => "1",
64  "for" => "1",
65  "forall" => "1",
66  "if" => "1",
67  "ifelse" => "1",
68  "loop" => "1",
69  "noaccess" => "1",
70  "pathforall" => "1",
71  "pdfmark" => "1",
72  "prompt" => "1",
73  "quit" => "1",
74  "readonly" => "1",
75  "repeat" => "1",
76  "resourceforall" => "1",
77  "restore" => "1",
78  "run" => "1",
79  "save" => "1",
80  "setglobal" => "1",
81  "start" => "1",
82  "startjob" => "1",
83  "stop" => "1",
84  "stopped" => "1",
85  "undef" => "1",
86  "undefineresource" => "1",
87  "undefineuserobject" => "1",
88  "arc" => "2",
89  "arcn" => "2",
90  "arct" => "2",
91  "arcto" => "2",
92  "ashow" => "2",
93  "awidthshow" => "2",
94  "charpath" => "2",
95  "clip" => "2",
96  "clippath" => "2",
97  "cliprestore" => "2",
98  "clipsave" => "2",
99  "closepath" => "2",
100  "colorimage" => "2",
101  "concat" => "2",
102  "concatmatrix" => "2",
103  "copypage" => "2",
104  "currentblackgeneration" => "2",
105  "currentcmykcolor" => "2",
106  "currentcolor" => "2",
107  "currentcolorrendering" => "2",
108  "currentcolorscreen" => "2",
109  "currentcolorspace" => "2",
110  "currentcolortransfer" => "2",
111  "currentdash" => "2",
112  "currentflat" => "2",
113  "currentgray" => "2",
114  "currentgstate" => "2",
115  "currenthalftone" => "2",
116  "currenthsbcolor" => "2",
117  "currentlinecap" => "2",
118  "currentlinejoin" => "2",
119  "currentlinewidth" => "2",
120  "currentmiterlimit" => "2",
121  "currentoverprint" => "2",
122  "currentpagedevice" => "2",
123  "currentpoint" => "2",
124  "currentrgbcolor" => "2",
125  "currentscreen" => "2",
126  "currentsmoothness" => "2",
127  "currentstrokeadjust" => "2",
128  "currenttransfer" => "2",
129  "currentundercolorremoval" => "2",
130  "curveto" => "2",
131  "composefont" => "2",
132  "cshow" => "2",
133  "currentfont" => "2",
134  "defaultmatrix" => "2",
135  "dtransform" => "2",
136  "definefont" => "2",
137  "eoclip" => "2",
138  "eofill" => "2",
139  "erasepage" => "2",
140  "execform" => "2",
141  "fill" => "2",
142  "flattenpath" => "2",
143  "findencoding" => "2",
144  "findfont" => "2",
145  "FontDirectory" => "2",
146  "grestore" => "2",
147  "grestoreall" => "2",
148  "gsave" => "2",
149  "glyphshow" => "2",
150  "GlobalFontDirectory" => "2",
151  "idtransform" => "2",
152  "ineofill" => "2",
153  "infill" => "2",
154  "initclip" => "2",
155  "initgraphics" => "2",
156  "identmatrix" => "2",
157  "initmatrix" => "2",
158  "instroke" => "2",
159  "inueofill" => "2",
160  "inufill" => "2",
161  "inustroke" => "2",
162  "invertmatrix" => "2",
163  "image" => "2",
164  "imagemask" => "2",
165  "ISOLatin1Encoding" => "2",
166  "kshow" => "2",
167  "lineto" => "2",
168  "makepattern" => "2",
169  "moveto" => "2",
170  "makefont" => "2",
171  "newpath" => "2",
172  "nulldevice" => "2",
173  "pathbox" => "2",
174  "rcurveto" => "2",
175  "rectclip" => "2",
176  "rectfill" => "2",
177  "rectstroke" => "2",
178  "reversepath" => "2",
179  "rlineto" => "2",
180  "rmoveto" => "2",
181  "rotate" => "2",
182  "rootfont" => "2",
183  "scale" => "2",
184  "setblackgeneration" => "2",
185  "setbox" => "2",
186  "setcmykcolor" => "2",
187  "setcolor" => "2",
188  "setcolorrendering" => "2",
189  "setcolorscreen" => "2",
190  "setcolorspace" => "2",
191  "setcolortransfer" => "2",
192  "setdash" => "2",
193  "setflat" => "2",
194  "setgray" => "2",
195  "setgstate" => "2",
196  "sethalftone" => "2",
197  "sethsbcolor" => "2",
198  "setlinecap" => "2",
199  "setlinejoin" => "2",
200  "setlinewidth" => "2",
201  "setmatrix" => "2",
202  "setmiterlimit" => "2",
203  "setoverprint" => "2",
204  "setpagedevice" => "2",
205  "setpattern" => "2",
206  "setrgbcolor" => "2",
207  "setscreen" => "2",
208  "setsmoothness" => "2",
209  "setstrokeadjust" => "2",
210  "settransfer" => "2",
211  "shfill" => "2",
212  "showpage" => "2",
213  "stroke" => "2",
214  "strokepath" => "2",
215  "scalefont" => "2",
216  "selectfont" => "2",
217  "setcachedevice" => "2",
218  "setcachedevice2" => "2",
219  "setcharwidth" => "2",
220  "setfont" => "2",
221  "show" => "2",
222  "StandardEncoding" => "2",
223  "stringwidth" => "2",
224  "transform" => "2",
225  "translate" => "2",
226  "uappend" => "2",
227  "ucache" => "2",
228  "ueofill" => "2",
229  "ufill" => "2",
230  "upath" => "2",
231  "ustroke" => "2",
232  "ustrokepath" => "2",
233  "widthshow" => "2",
234  "xshow" => "2",
235  "xyshow" => "2",
236  "yshow" => "2",
237  "[" => "3",
238  "]" => "3",
239  "<<" => "3",
240  ">>" => "3",
241  "$error" => "3",
242  "aload" => "3",
243  "anchorsearch" => "3",
244  "astore" => "3",
245  "array" => "3",
246  "abs" => "3",
247  "add" => "3",
248  "and" => "3",
249  "atan" => "3",
250  "bitshift" => "3",
251  "copy" => "3",
252  "currentglobal" => "3",
253  "currentobjectformat" => "3",
254  "currentpacking" => "3",
255  "cvi" => "3",
256  "cvlit" => "3",
257  "cvn" => "3",
258  "cvr" => "3",
259  "cvrs" => "3",
260  "cvs" => "3",
261  "cvx" => "3",
262  "currentdict" => "3",
263  "currentfile" => "3",
264  "currentmatrix" => "3",
265  "clear" => "3",
266  "cleardictstack" => "3",
267  "cleartomark" => "3",
268  "count" => "3",
269  "countdictstack" => "3",
270  "countexecstack" => "3",
271  "counttomark" => "3",
272  "ceiling" => "3",
273  "cos" => "3",
274  "dict" => "3",
275  "dictstack" => "3",
276  "dup" => "3",
277  "div" => "3",
278  "errordict" => "3",
279  "execstack" => "3",
280  "exch" => "3",
281  "eq" => "3",
282  "exp" => "3",
283  "findcolorrendering" => "3",
284  "false" => "3",
285  "file" => "3",
286  "filter" => "3",
287  "findresource" => "3",
288  "floor" => "3",
289  "gcheck" => "3",
290  "get" => "3",
291  "getinterval" => "3",
292  "globaldict" => "3",
293  "gstate" => "3",
294  "ge" => "3",
295  "gt" => "3",
296  "index" => "3",
297  "idiv" => "3",
298  "known" => "3",
299  "languagelevel" => "3",
300  "length" => "3",
301  "load" => "3",
302  "le" => "3",
303  "ln" => "3",
304  "log" => "3",
305  "lt" => "3",
306  "maxlength" => "3",
307  "matrix" => "3",
308  "mark" => "3",
309  "mod" => "3",
310  "mul" => "3",
311  "null" => "3",
312  "ne" => "3",
313  "neg" => "3",
314  "not" => "3",
315  "product" => "3",
316  "put" => "3",
317  "putinterval" => "3",
318  "packedarray" => "3",
319  "pop" => "3",
320  "pstack" => "3",
321  "rcheck" => "3",
322  "realtime" => "3",
323  "resourcestatus" => "3",
324  "revision" => "3",
325  "roll" => "3",
326  "rand" => "3",
327  "rrand" => "3",
328  "round" => "3",
329  "search" => "3",
330  "serialnumber" => "3",
331  "setobjectformat" => "3",
332  "setpacking" => "3",
333  "store" => "3",
334  "statusdict" => "3",
335  "string" => "3",
336  "systemdict" => "3",
337  "stack" => "3",
338  "sin" => "3",
339  "sqrt" => "3",
340  "srand" => "3",
341  "sub" => "3",
342  "token" => "3",
343  "type" => "3",
344  "true" => "3",
345  "truncate" => "3",
346  "usertime" => "3",
347  "userdict" => "3",
348  "UserObjects" => "3",
349  "version" => "3",
350  "wcheck" => "3",
351  "where" => "3",
352  "xcheck" => "3",
353  "xor" => "3",
354  "==" => "4",
355  "bytesavailable" => "4",
356  "closefile" => "4",
357  "deletefile" => "4",
358  "fileposition" => "4",
359  "flush" => "4",
360  "flushfile" => "4",
361  "print" => "4",
362  "printobject" => "4",
363  "read" => "4",
364  "readhexstring" => "4",
365  "readline" => "4",
366  "readstring" => "4",
367  "renamefile" => "4",
368  "resetfile" => "4",
369  "status" => "4",
370  "write" => "4",
371  "writehexstring" => "4",
372  "writeobject" => "4",
373  "writestring" => "4");
374 
375 // Special extensions
376 
377 // Each category can specify a PHP function that returns an altered
378 // version of the keyword.
379 
380 
381 
382 $this->linkscripts = array(
383  "" => "donothing",
384  "4" => "donothing",
385  "1" => "donothing",
386  "2" => "donothing",
387  "3" => "donothing");
388 }
389 
390 
391 function donothing($keywordin)
392 {
393  return $keywordin;
394 }
395 
396 }?>