ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_4gl.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_4gl extends HFile
8  {
9  public function HFile_4gl()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // INFORMIX
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("MAIN", "THEN");
32  $this->unindent = array("END MAIN", "END IF", "END FOR", "END FOREACH");
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  "ADD" => "1",
50  "AFTER" => "1",
51  "ALL" => "1",
52  "ALLOWING" => "1",
53  "AND" => "1",
54  "ANY" => "1",
55  "ARG_VAL" => "1",
56  "ARRAY" => "1",
57  "ARR_COUNT" => "1",
58  "ARR_CURR" => "1",
59  "AS" => "1",
60  "ASC" => "1",
61  "AT" => "1",
62  "ATTRIBUTE" => "1",
63  "ATTRIBUTES" => "1",
64  "AUTO" => "1",
65  "AUTONEXT" => "1",
66  "AVERAGE" => "1",
67  "AVG" => "1",
68  "BEFORE" => "1",
69  "BETWEEN" => "1",
70  "BOTTOM" => "1",
71  "BY" => "1",
72  "CALL" => "1",
73  "CASE" => "1",
74  "CHECK" => "1",
75  "CLEAR" => "1",
76  "CLIPPED" => "1",
77  "CLOSE" => "1",
78  "COLUMN" => "1",
79  "COLUMNS" => "1",
80  "COMMAND" => "1",
81  "COMMENT" => "1",
82  "COMMENTS" => "1",
83  "COMMIT" => "1",
84  "COMPOSITES" => "1",
85  "CONNECT" => "1",
86  "CONSTRUCT" => "1",
87  "CONTINUE" => "1",
88  "CORRECT" => "1",
89  "COUNT" => "1",
90  "CURRENT" => "1",
91  "CURSOR" => "1",
92  "DATABASE" => "1",
93  "DECLARE" => "1",
94  "DEFAULT" => "1",
95  "DEFER" => "1",
96  "DEFINE" => "1",
97  "DELIMITERS" => "1",
98  "DESC" => "1",
99  "DESCRIBE" => "1",
100  "DISPLAY" => "1",
101  "DISPLAYONLY" => "1",
102  "DISTINCT" => "1",
103  "DO" => "1",
104  "DOWN" => "1",
105  "DOWNSHIFT" => "1",
106  "ELSE" => "1",
107  "END" => "1",
108  "ENTRY" => "1",
109  "EVERY" => "1",
110  "EXECUTE" => "1",
111  "EXISTS" => "1",
112  "EXIT" => "1",
113  "EXTERN" => "1",
114  "FALSE" => "1",
115  "FETCH" => "1",
116  "FIELD" => "1",
117  "FINISH" => "1",
118  "FIRST" => "1",
119  "FOR" => "1",
120  "FOREACH" => "1",
121  "FORM" => "1",
122  "FORMAT" => "1",
123  "FORMONLY" => "1",
124  "FOUND" => "1",
125  "FROM" => "1",
126  "FUNCTION" => "1",
127  "GLOGALS" => "1",
128  "GROUP" => "1",
129  "HAVING" => "1",
130  "HEADER" => "1",
131  "HELP" => "1",
132  "IF" => "1",
133  "IN" => "1",
134  "INCLUDE" => "1",
135  "INPUT" => "1",
136  "INSERT" => "1",
137  "INSTRUCTIONS" => "1",
138  "INTO" => "1",
139  "IS" => "1",
140  "JOINING" => "1",
141  "KEY" => "1",
142  "LABEL" => "1",
143  "LAST" => "1",
144  "LENGHT" => "1",
145  "LET" => "1",
146  "LINE" => "1",
147  "LINENO" => "1",
148  "LINES" => "1",
149  "LOG" => "1",
150  "MAIN" => "1",
151  "MARGIN" => "1",
152  "MASTER" => "1",
153  "MATCHES" => "1",
154  "MAX" => "1",
155  "MDY" => "1",
156  "MENU" => "1",
157  "MESSAGE" => "1",
158  "MIN" => "1",
159  "MODE" => "1",
160  "NAME" => "1",
161  "NEED" => "1",
162  "NEXT" => "1",
163  "NEXTFIELD" => "1",
164  "NO" => "1",
165  "NORMAL" => "1",
166  "NOT" => "1",
167  "NOTFOUND" => "1",
168  "NULL" => "1",
169  "NUM_ARGS" => "1",
170  "OF" => "1",
171  "ON" => "1",
172  "OPEN" => "1",
173  "OPTION" => "1",
174  "OPTIONS" => "1",
175  "OR" => "1",
176  "ORDER" => "1",
177  "OTHERWISE" => "1",
178  "OUTER" => "1",
179  "OUTPUT" => "1",
180  "PAGE" => "1",
181  "PAGENO" => "1",
182  "PREPARE" => "1",
183  "PREVIOUS" => "1",
184  "PRINT" => "1",
185  "PRINTER" => "1",
186  "PRIVILEGES" => "1",
187  "PROGRAM" => "1",
188  "PROMPT" => "1",
189  "QUERY" => "1",
190  "QUERYCLEAR" => "1",
191  "QUIT" => "1",
192  "RECORD" => "1",
193  "REGISTER" => "1",
194  "REPORT" => "1",
195  "RESOURCE" => "1",
196  "RETURN" => "1",
197  "RETURNING" => "1",
198  "REVERSE" => "1",
199  "RIGHT" => "1",
200  "ROW" => "1",
201  "ROWID" => "1",
202  "RUN" => "1",
203  "SCREEN" => "1",
204  "SCROLL" => "1",
205  "SCR_LINE" => "1",
206  "SELECT" => "1",
207  "SET" => "1",
208  "SET_COUNT" => "1",
209  "SHARE" => "1",
210  "SIZEOF" => "1",
211  "SKIP" => "1",
212  "SOME" => "1",
213  "SQLCA" => "1",
214  "START" => "1",
215  "STARTLOG" => "1",
216  "STATIC" => "1",
217  "STATISTICS" => "1",
218  "STATUS" => "1",
219  "STEP" => "1",
220  "STOP" => "1",
221  "SUM" => "1",
222  "SWITCH" => "1",
223  "SYNONYM" => "1",
224  "SYSTABLES" => "1",
225  "THEN" => "1",
226  "THROUGH" => "1",
227  "THRU" => "1",
228  "TO" => "1",
229  "TOP" => "1",
230  "TRAILER" => "1",
231  "TRUE" => "1",
232  "UNION" => "1",
233  "UNIQUE" => "1",
234  "UNLOCK" => "1",
235  "UP" => "1",
236  "UBeautifierIFT" => "1",
237  "USER" => "1",
238  "USING" => "1",
239  "VALIDATE" => "1",
240  "VALUE" => "1",
241  "VALUES" => "1",
242  "VERIFY" => "1",
243  "VIEW" => "1",
244  "WAITING" => "1",
245  "WARNING" => "1",
246  "WHEN" => "1",
247  "WHENEVER" => "1",
248  "WHERE" => "1",
249  "WHILE" => "1",
250  "WITH" => "1",
251  "WITHOUT" => "1",
252  "WORK" => "1",
253  "WRAP" => "1",
254  "ALTER" => "2",
255  "BREAK" => "2",
256  "CREATE" => "2",
257  "DELETE" => "2",
258  "DROP" => "2",
259  "EDITADD" => "2",
260  "EDITUPDATE" => "2",
261  "ERROR" => "2",
262  "ERRORLOG" => "2",
263  "ERR_GET" => "2",
264  "ERR_PRINT" => "2",
265  "ERR_QUIT" => "2",
266  "EXCLUSIVE" => "2",
267  "EXITNOW" => "2",
268  "GOTO" => "2",
269  "GRANT" => "2",
270  "INITIALIZE" => "2",
271  "INTERRUPT" => "2",
272  "LOCK" => "2",
273  "MODIFY" => "2",
274  "PAUSE" => "2",
275  "PIPE" => "2",
276  "PUBLIC" => "2",
277  "RECOVER" => "2",
278  "REMOVE" => "2",
279  "RENAME" => "2",
280  "REVOKE" => "2",
281  "ROLLBACK" => "2",
282  "ROLLFORWARD" => "2",
283  "SLEEP" => "2",
284  "SQLERRD" => "2",
285  "TABLE" => "2",
286  "TABLES" => "2",
287  "TEMP" => "2",
288  "UPDATE" => "2",
289  "CHAR" => "3",
290  "DATE" => "3",
291  "DAY" => "3",
292  "DBA" => "3",
293  "DECIMAL" => "3",
294  "DOUBLE" => "3",
295  "DEC" => "3",
296  "FLOAT" => "3",
297  "INDEX" => "3",
298  "INT" => "3",
299  "INTEGER" => "3",
300  "LIKE" => "3",
301  "LONG" => "3",
302  "LOOKUP" => "3",
303  "MONEY" => "3",
304  "MONTH" => "3",
305  "NOENTRY" => "3",
306  "NOUPDATE" => "3",
307  "PERCENT" => "3",
308  "PICTURE" => "3",
309  "REQUIRED" => "3",
310  "SHORT" => "3",
311  "SMALLFLOAT" => "3",
312  "SMALLINT" => "3",
313  "STRUCT" => "3",
314  "SERIAL" => "3",
315  "SPACE" => "3",
316  "SPACES" => "3",
317  "TIME" => "3",
318  "TODAY" => "3",
319  "TYPE" => "3",
320  "TYPEDEF" => "3",
321  "UNSIGNED" => "3",
322  "WEEKDAY" => "3",
323  "YEAR" => "3",
324  "ZEROFILL" => "3");
325 
326  // Special extensions
327 
328  // Each category can specify a PHP function that returns an altered
329  // version of the keyword.
330 
331 
332 
333  $this->linkscripts = array(
334  "1" => "donothing",
335  "2" => "donothing",
336  "3" => "donothing");
337  }
338 
339 
340  public function donothing($keywordin)
341  {
342  return $keywordin;
343  }
344  }
$BEAUT_PATH
Definition: HFile_4gl.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21
HFile_4gl()
Definition: HFile_4gl.php:9
donothing($keywordin)
Definition: HFile_4gl.php:340