ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_sqr.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_sqr extends HFile{
6  function HFile_sqr(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // SQR
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown", "blue");
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  "begin-footing" => "1",
46  "begin-heading" => "1",
47  "begin-procedure" => "1",
48  "begin-program" => "1",
49  "begin-report" => "1",
50  "begin-setup" => "1",
51  "end-footing" => "1",
52  "end-heading" => "1",
53  "end-procedure" => "1",
54  "end-program" => "1",
55  "end-report" => "1",
56  "end-setup" => "1",
57  "Input" => "1",
58  "alter-printer" => "2",
59  "begin-document" => "2",
60  "begin-select" => "2",
61  "begin-sql" => "2",
62  "declare-chart" => "2",
63  "declare-image" => "2",
64  "declare-layout" => "2",
65  "declare-printer" => "2",
66  "declare-procedure" => "2",
67  "declare-report" => "2",
68  "end-declare" => "2",
69  "end-document" => "2",
70  "end-select" => "2",
71  "end-sql" => "2",
72  "load-lookup" => "2",
73  "#debug" => "3",
74  "#define" => "3",
75  "#else" => "3",
76  "#end-if" => "3",
77  "#endif" => "3",
78  "#if" => "3",
79  "#ifdef" => "3",
80  "#ifndef" => "3",
81  "#include" => "3",
82  "add" => "4",
83  "array-add" => "4",
84  "array-divide" => "4",
85  "array-multiply" => "4",
86  "array-subtract" => "4",
87  "ask" => "4",
88  "break" => "4",
89  "call" => "4",
90  "clear-array" => "4",
91  "close" => "4",
92  "columns" => "4",
93  "commit" => "4",
94  "concat" => "4",
95  "connect" => "4",
96  "create-array" => "4",
97  "date-time" => "4",
98  "display" => "4",
99  "divide" => "4",
100  "do" => "4",
101  "dollar-symbol" => "4",
102  "else" => "4",
103  "encode" => "4",
104  "end-evaluate" => "4",
105  "end-if" => "4",
106  "end-while" => "4",
107  "evaluate" => "4",
108  "execute" => "4",
109  "extract" => "4",
110  "find" => "4",
111  "font" => "4",
112  "get" => "4",
113  "goto" => "4",
114  "graphic" => "4",
115  "if" => "4",
116  "last-page" => "4",
117  "let" => "4",
118  "lookup" => "4",
119  "lowercase" => "4",
120  "money-symbol" => "4",
121  "move" => "4",
122  "multiply" => "4",
123  "new-page" => "4",
124  "new-report" => "4",
125  "next-column" => "4",
126  "next-listing" => "4",
127  "no-formfeed" => "4",
128  "open" => "4",
129  "page-number" => "4",
130  "page-size" => "4",
131  "position" => "4",
132  "print" => "4",
133  "print-bar-code" => "4",
134  "print-chart" => "4",
135  "print-direct" => "4",
136  "print-image" => "4",
137  "printer-deinit" => "4",
138  "printer-init" => "4",
139  "put" => "4",
140  "read" => "4",
141  "rollback" => "4",
142  "show" => "4",
143  "stop" => "4",
144  "string" => "4",
145  "subtract" => "4",
146  "unstring" => "4",
147  "uppercase" => "4",
148  "use" => "4",
149  "use-column" => "4",
150  "use-printer-type" => "4",
151  "use-procedure" => "4",
152  "use-report" => "4",
153  "while" => "4",
154  "write" => "4",
155  "#current-column" => "5",
156  "#current-line" => "5",
157  "#end-file" => "5",
158  "#page-count" => "5",
159  "#return-status" => "5",
160  "#sql-count" => "5",
161  "#sql-status" => "5",
162  "#sqr-pid" => "5",
163  "$sql-error" => "5",
164  "$sqr-database" => "5",
165  "$sqr-platform" => "5",
166  "$sqr-program" => "5",
167  "$sqr-report" => "5",
168  "$sqr-ver" => "5",
169  "$username" => "5",
170  "3d-effects" => "5",
171  "abs" => "5",
172  "acos" => "5",
173  "after-bold" => "5",
174  "after-page" => "5",
175  "after-report" => "5",
176  "and" => "5",
177  "array" => "5",
178  "as" => "5",
179  "ascii" => "5",
180  "asin" => "5",
181  "at-end" => "5",
182  "atan" => "5",
183  "beep" => "5",
184  "before-bold" => "5",
185  "before-page" => "5",
186  "before-report" => "5",
187  "blink" => "5",
188  "bold" => "5",
189  "bottom-margin" => "5",
190  "box" => "5",
191  "by" => "5",
192  "ceil" => "5",
193  "center" => "5",
194  "char" => "5",
195  "char-size" => "5",
196  "char-width" => "5",
197  "chars-inch" => "5",
198  "chart-size" => "5",
199  "cl" => "5",
200  "clear-line" => "5",
201  "clear-screen" => "5",
202  "cond" => "5",
203  "cos" => "5",
204  "cosh" => "5",
205  "cs" => "5",
206  "date" => "5",
207  "deg" => "5",
208  "delete" => "5",
209  "distinct" => "5",
210  "e10" => "5",
211  "edit" => "5",
212  "erase-page" => "5",
213  "exists" => "5",
214  "exp" => "5",
215  "extent" => "5",
216  "field" => "5",
217  "fill" => "5",
218  "fixed" => "5",
219  "fixed_nolf" => "5",
220  "floor" => "5",
221  "font-type" => "5",
222  "for-append" => "5",
223  "for-reading" => "5",
224  "for-reports" => "5",
225  "for-writing" => "5",
226  "formfeed" => "5",
227  "from" => "5",
228  "getenv" => "5",
229  "goto-top" => "5",
230  "group" => "5",
231  "having" => "5",
232  "horz-line" => "5",
233  "image-size" => "5",
234  "in" => "5",
235  "insert" => "5",
236  "instr" => "5",
237  "integer" => "5",
238  "into" => "5",
239  "isblank" => "5",
240  "isnull" => "5",
241  "is" => "5",
242  "key" => "5",
243  "layout" => "5",
244  "left-margin" => "5",
245  "legend" => "5",
246  "legend-placement" => "5",
247  "legend-presentation" => "5",
248  "legend-title" => "5",
249  "length" => "5",
250  "line-height" => "5",
251  "line-size" => "5",
252  "line-width" => "5",
253  "lines-inch" => "5",
254  "local" => "5",
255  "log10" => "5",
256  "loops" => "5",
257  "lower" => "5",
258  "lpad" => "5",
259  "ltrim" => "5",
260  "max-columns" => "5",
261  "max-lines" => "5",
262  "maxlen" => "5",
263  "mod" => "5",
264  "name" => "5",
265  "need" => "5",
266  "newline" => "5",
267  "newpage" => "5",
268  "no-advance" => "5",
269  "noprompt" => "5",
270  "normal" => "5",
271  "not" => "5",
272  "number" => "5",
273  "nvl" => "5",
274  "null" => "5",
275  "on-error" => "5",
276  "or" => "5",
277  "order" => "5",
278  "orientation" => "5",
279  "page-depth" => "5",
280  "paper-size" => "5",
281  "pie-segment-explode" => "5",
282  "pie-segment-percent-display" => "5",
283  "pie-segment-quantity-display" => "5",
284  "pitch" => "5",
285  "point-markers" => "5",
286  "point-size" => "5",
287  "power" => "5",
288  "printer-type" => "5",
289  "quiet" => "5",
290  "rad" => "5",
291  "range" => "5",
292  "record" => "5",
293  "rename" => "5",
294  "return_value" => "5",
295  "reverse" => "5",
296  "right-margin" => "5",
297  "round" => "5",
298  "rows" => "5",
299  "rpad" => "5",
300  "rtrim" => "5",
301  "select" => "5",
302  "sign" => "5",
303  "sin" => "5",
304  "sinh" => "5",
305  "size" => "5",
306  "skip" => "5",
307  "skiplines" => "5",
308  "sort" => "5",
309  "source" => "5",
310  "sqr-database" => "5",
311  "sqr-platform" => "5",
312  "sqrt" => "5",
313  "startup-file" => "5",
314  "status" => "5",
315  "sub-title" => "5",
316  "substr" => "5",
317  "symbol-set" => "5",
318  "table" => "5",
319  "tan" => "5",
320  "tanh" => "5",
321  "times" => "5",
322  "title" => "5",
323  "to" => "5",
324  "to_char" => "5",
325  "to_date" => "5",
326  "to_number" => "5",
327  "top-margin" => "5",
328  "translate" => "5",
329  "trunc" => "5",
330  "type" => "5",
331  "underline" => "5",
332  "update" => "5",
333  "upper" => "5",
334  "using" => "5",
335  "vary" => "5",
336  "vert-line" => "5",
337  "warn" => "5",
338  "when" => "5",
339  "when-other" => "5",
340  "where" => "5",
341  "with" => "5",
342  "x-axis-grid" => "5",
343  "x-axis-label" => "5",
344  "x-axis-major-increment" => "5",
345  "x-axis-major-tick-marks" => "5",
346  "x-axis-max-value" => "5",
347  "x-axis-min-value" => "5",
348  "x-axis-minor-increment" => "5",
349  "x-axis-minor-tick-marks" => "5",
350  "x-axis-scale" => "5",
351  "x-axis-tick-mark-placement" => "5",
352  "xor" => "5",
353  "y-axis-grid" => "5",
354  "y-axis-label" => "5",
355  "y-axis-major-increment" => "5",
356  "y-axis-major-tick-marks" => "5",
357  "y-axis-max-value" => "5",
358  "y-axis-min-value" => "5",
359  "y-axis-minor-increment" => "5",
360  "y-axis-minor-tick-marks" => "5",
361  "y-axis-scale" => "5",
362  "y-axis-tick-mark-placement" => "5");
363 
364 // Special extensions
365 
366 // Each category can specify a PHP function that returns an altered
367 // version of the keyword.
368 
369 
370 
371 $this->linkscripts = array(
372  "1" => "donothing",
373  "2" => "donothing",
374  "3" => "donothing",
375  "4" => "donothing",
376  "5" => "donothing");
377 }
378 
379 
380 function donothing($keywordin)
381 {
382  return $keywordin;
383 }
384 
385 }?>