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