ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_peoplesoftsqr.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_peoplesoftsqr extends HFile{
6  function HFile_peoplesoftsqr(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 //
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("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  "/L10" => "",
46  "\"SQR\"" => "",
47  "Line" => "",
48  "Comment" => "",
49  "=" => "",
50  "!" => "",
51  "Nocase" => "",
52  "Noquote" => "",
53  "File" => "",
54  "Extensions" => "",
55  "SQR" => "",
56  "SQC" => "",
57  "BEGIN-DOCUMENT" => "1",
58  "BEGIN-FOOTING" => "1",
59  "BEGIN-PROCEDURE" => "1",
60  "BEGIN-SQL" => "1",
61  "BEGIN-SELECT" => "1",
62  "BEGIN-REPORT" => "1",
63  "BEGIN-SETUP" => "1",
64  "BEGIN-HEADING" => "1",
65  "END-DOCUMENT" => "1",
66  "END-FOOTING" => "1",
67  "END-PROCEDURE" => "1",
68  "END-SQL" => "1",
69  "END-SELECT" => "1",
70  "END-REPORT" => "1",
71  "END-SETUP" => "1",
72  "END-HEADING" => "1",
73  "END-IF" => "1",
74  "END-WHILE" => "1",
75  "IF" => "1",
76  "WHILE" => "1",
77  "#DEBUG" => "2",
78  "#DEFINE" => "2",
79  "#ELSE" => "2",
80  "#END" => "2",
81  "#END-IF" => "2",
82  "#ENDIF" => "2",
83  "#IF" => "2",
84  "#IFDEF" => "2",
85  "#IFNDEF" => "2",
86  "#INCLUDE" => "2",
87  "ADD" => "2",
88  "ARRAY" => "2",
89  "ALTER" => "2",
90  "ASK" => "2",
91  "AND" => "2",
92  "ALTER-LOCAL" => "2",
93  "ALTER-PRINTER" => "2",
94  "ARRAY-ADD" => "2",
95  "ARRAY-DIVIDE" => "2",
96  "ARRAY-MULTIPLY" => "2",
97  "ARRAY-SUBTRACT" => "2",
98  "BREAK" => "2",
99  "BAR" => "2",
100  "BOX" => "2",
101  "BEGIN" => "2",
102  "BOTTOM-MARGIN" => "2",
103  "CALL" => "2",
104  "COMMIT" => "2",
105  "CLEAR" => "2",
106  "CONCAT" => "2",
107  "CLOSE" => "2",
108  "CONNECT" => "2",
109  "COLUMNS" => "2",
110  "CREATE" => "2",
111  "CHART" => "2",
112  "CODE" => "2",
113  "COLUMN" => "2",
114  "CLEAR-ARRAY" => "2",
115  "CREATE-ARRAY" => "2",
116  "CHAR" => "2",
117  "CHAR-WIDTH" => "2",
118  "COLOR" => "2",
119  "DIVIDE" => "2",
120  "DOCUMENT" => "2",
121  "DECLARE" => "2",
122  "DO" => "2",
123  "DISPLAY" => "2",
124  "DOLLAR" => "2",
125  "DIRECT" => "2",
126  "DEINIT" => "2",
127  "DECIMAL" => "2",
128  "DATE" => "2",
129  "DEBUG" => "2",
130  "DECLARE-CHART" => "2",
131  "DECLARE-IMAGE" => "2",
132  "DECLARE-LAYOUT" => "2",
133  "DECLARE-PRINTER" => "2",
134  "DECLARE-PROCEDURE" => "2",
135  "DECLARE-REPORT" => "2",
136  "DECLARE-VARIABLE" => "2",
137  "DATE-EDIT-MASK" => "2",
138  "DECIMAL-SEPARATOR" => "2",
139  "DATE-SEPARATOR" => "2",
140  "DISTINCT" => "2",
141  "DAY-OF-WEEK-CASE" => "2",
142  "DAY-OF-WEEK-FULL" => "2",
143  "DAY-OF-WEEK-SHORT" => "2",
144  "ELSE" => "2",
145  "ENCODE" => "2",
146  "EVALUATE" => "2",
147  "END-DECLARE" => "2",
148  "END-EVALUATE" => "2",
149  "END-PROGRAM" => "2",
150  "EXIT-SELECT" => "2",
151  "EXECUTE" => "2",
152  "EXIT" => "2",
153  "EXTRACT" => "2",
154  "END" => "2",
155  "FOOTING" => "2",
156  "FORMFEED" => "2",
157  "FIND" => "2",
158  "FONT" => "2",
159  "FROM" => "2",
160  "FONT-TYPE" => "2",
161  "FLOAT" => "2",
162  "FOR-REPORTS" => "2",
163  "FIELD" => "2",
164  "FILL" => "2",
165  "GET" => "2",
166  "GRAPHIC" => "2",
167  "GOTO" => "2",
168  "HORZ-LINE" => "2",
169  "HORZ" => "2",
170  "HEADING" => "2",
171  "IMAGE" => "2",
172  "INPUT" => "2",
173  "INIT" => "2",
174  "INPUT-DATE-EDIT-MASK" => "2",
175  "INTO" => "2",
176  "INTEGER" => "2",
177  "IMAGE-SIZE" => "2",
178  "INIT-STRING" => "2",
179  "LOOKUP" => "2",
180  "LET" => "2",
181  "LOWERCASE" => "2",
182  "LOAD" => "2",
183  "LAYOUT" => "2",
184  "LINE" => "2",
185  "LAST" => "2",
186  "LISTING" => "2",
187  "LAST-PAGE" => "2",
188  "LOWER" => "2",
189  "LOAD-LOOKUP" => "2",
190  "LOCALE" => "2",
191  "LOCAL" => "2",
192  "LOOPS" => "2",
193  "LEFT-MARGIN" => "2",
194  "LINE-WIDTH" => "2",
195  "LINE-HEIGHT" => "2",
196  "LANDSCAPE" => "2",
197  "MULTIPLY" => "2",
198  "MONEY" => "2",
199  "MOVE" => "2",
200  "MATCH" => "2",
201  "MONEY-SIGN" => "2",
202  "MONEY-SIGN-LOCATION" => "2",
203  "MONTHS-CASE" => "2",
204  "MONTHS-FULL" => "2",
205  "MONTHS-SHORT" => "2",
206  "MONEY-EDIT-MASK" => "2",
207  "MAX-COLUMNS" => "2",
208  "MAX-LINES" => "2",
209  "NEW-PAGE" => "2",
210  "NEW-REPORT" => "2",
211  "NEXT-COLUMN" => "2",
212  "NEWLINE" => "2",
213  "NEWPAGE" => "2",
214  "NEXT-LISTING" => "2",
215  "NOP" => "2",
216  "NUMBER" => "2",
217  "NUMBER-EDIT-MASK" => "2",
218  "NVL" => "2",
219  "NOWAIT" => "2",
220  "NAME" => "2",
221  "OPEN" => "2",
222  "ON-BREAK" => "2",
223  "ON-ERROR" => "2",
224  "ORIENTATION" => "2",
225  "PRINT" => "2",
226  "PRINTER" => "2",
227  "PROCEDURE" => "2",
228  "PROGRAM" => "2",
229  "PAGE" => "2",
230  "POSITION" => "2",
231  "PUT" => "2",
232  "PAGE-NUMBER" => "2",
233  "PRINT-BAR-CODE" => "2",
234  "PRINT-CHART" => "2",
235  "PRINT-DIRECT" => "2",
236  "PRINT-IMAGE" => "2",
237  "POINT-SIZE" => "2",
238  "PITCH" => "2",
239  "PAPER-SIZE" => "2",
240  "PAGE-DEPTH" => "2",
241  "REPORT" => "2",
242  "READ" => "2",
243  "ROLLBACK" => "2",
244  "ROUND" => "2",
245  "RIGHT-MARGIN" => "2",
246  "SELECT" => "2",
247  "SETUP" => "2",
248  "SUBTRACT" => "2",
249  "SQL" => "2",
250  "SYMBOL" => "2",
251  "SIZE" => "2",
252  "SHOW" => "2",
253  "STRING" => "2",
254  "STOP" => "2",
255  "SOURCE" => "2",
256  "STARTUP-FILE" => "2",
257  "TYPE" => "2",
258  "TO" => "2",
259  "THOUSAND-SEPARATOR" => "2",
260  "TIME-SEPARATOR" => "2",
261  "TIMES" => "2",
262  "TEXT" => "2",
263  "TOP-MARGIN" => "2",
264  "USE" => "2",
265  "UPPERCASE" => "2",
266  "USE-COLUMN" => "2",
267  "USE-PRINTER-TYPE" => "2",
268  "USE-PROCEDURE" => "2",
269  "USE-REPORT" => "2",
270  "USING" => "2",
271  "VERT" => "2",
272  "WRITE" => "2",
273  "WAIT" => "2",
274  "WITH" => "2",
275  "WHERE" => "2",
276  "DATEADD" => "3",
277  "DATEDIFF" => "3",
278  "DATENOW" => "3",
279  "DATETOSTR" => "3",
280  "DELETE" => "3",
281  "EDIT" => "3",
282  "EXISTS" => "3",
283  "INSTR" => "3",
284  "ISBLANK" => "3",
285  "ISNULL" => "3",
286  "LENGTH" => "3",
287  "LPAD" => "3",
288  "LTRIM" => "3",
289  "MOD" => "3",
290  "RENAME" => "3",
291  "RPAD" => "3",
292  "RTRIM" => "3",
293  "STRTODATE" => "3",
294  "SUBSTR" => "3",
295  "TO_CHAR" => "3",
296  "TO_NUMBER" => "3",
297  "TRANSLATE" => "3",
298  "UNSTRING" => "3",
299  "UPPER" => "3");
300 
301 // Special extensions
302 
303 // Each category can specify a PHP function that returns an altered
304 // version of the keyword.
305 
306 
307 
308 $this->linkscripts = array(
309  "" => "donothing",
310  "1" => "donothing",
311  "2" => "donothing",
312  "3" => "donothing");
313 }
314 
315 
316 function donothing($keywordin)
317 {
318  return $keywordin;
319 }
320 
321 }?>