ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_msgbuilder.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_msgbuilder extends HFile
8  {
9  public function HFile_msgbuilder()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // MessageBuilder 4edi
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  "AND" => "1",
50  "BREAK" => "1",
51  "BEGIN" => "1",
52  "BY" => "1",
53  "CATCH" => "1",
54  "CASE" => "1",
55  "CONTINUE" => "1",
56  "CALL" => "1",
57  "DO" => "1",
58  "ELSE" => "1",
59  "EXIT" => "1",
60  "EXEC" => "1",
61  "FOR" => "1",
62  "IF" => "1",
63  "LOOP" => "1",
64  "OR" => "1",
65  "RETURN" => "1",
66  "REPEAT" => "1",
67  "SWITCH" => "1",
68  "TRY" => "1",
69  "THROW" => "1",
70  "TO" => "1",
71  "WHILE" => "1",
72  "WHEN" => "1",
73  "WHERE" => "1",
74  "WORK" => "1",
75  "APPEND" => "2",
76  "AS" => "2",
77  "ASSIGNMENT" => "2",
78  "BYTE" => "2",
79  "boolean" => "2",
80  "binary" => "2",
81  "BIT" => "2",
82  "BOUNDED" => "2",
83  "CHAR" => "2",
84  "CONSTANT" => "2",
85  "CENTER" => "2",
86  "CHARSET" => "2",
87  "COMMENTS" => "2",
88  "COMPOSITE" => "2",
89  "CONDITIONAL" => "2",
90  "CONSTANTS" => "2",
91  "CONTROL" => "2",
92  "DEFAULT" => "2",
93  "double" => "2",
94  "DECLARE" => "2",
95  "DATA" => "2",
96  "DATABASE" => "2",
97  "DESTINATION" => "2",
98  "EDI" => "2",
99  "EDI_CHARSET" => "2",
100  "ELEMENT" => "2",
101  "ERROR" => "2",
102  "EXECUTE" => "2",
103  "EXPORT" => "2",
104  "FALSE" => "2",
105  "float" => "2",
106  "FUNCTION" => "2",
107  "FILE" => "2",
108  "FORMAT" => "2",
109  "FROM_ISO8859" => "2",
110  "FROM" => "2",
111  "GROUP" => "2",
112  "IMPORT" => "2",
113  "INTEGER" => "2",
114  "INTO" => "2",
115  "INCLUDE" => "2",
116  "IN" => "2",
117  "INOUT" => "2",
118  "INPUT" => "2",
119  "INSERT" => "2",
120  "LOGID" => "2",
121  "LOCK" => "2",
122  "MANDATORY" => "2",
123  "OUT" => "2",
124  "ON" => "2",
125  "OPTIONAL" => "2",
126  "ORDER" => "2",
127  "OTHERS" => "2",
128  "OUTPUT" => "2",
129  "RELATION" => "2",
130  "RELEASE" => "2",
131  "RESERVED" => "2",
132  "ROLLBACK" => "2",
133  "SHORT" => "2",
134  "static" => "2",
135  "SUB" => "2",
136  "STRING" => "2",
137  "STATEMENT" => "2",
138  "SEGMENT" => "2",
139  "SELECT" => "2",
140  "SEQUENCE" => "2",
141  "SET" => "2",
142  "SOURCE" => "2",
143  "SQL" => "2",
144  "TRUE" => "2",
145  "TABLE" => "2",
146  "TEXT" => "2",
147  "TO_ISO8859" => "2",
148  "TYPE" => "2",
149  "TYPES" => "2",
150  "UNBOUNDED" => "2",
151  "UNLOCK" => "2",
152  "UPDATE" => "2",
153  "VOID" => "2",
154  "VALUES" => "2",
155  "VARIABLE" => "2",
156  "VARIABLES" => "2",
157  "$error" => "2",
158  "$exec" => "2",
159  "$PGM_exception" => "2",
160  "ARRAYSIZE" => "3",
161  "BIT_AND" => "3",
162  "BIT_NOT" => "3",
163  "BIT_OR" => "3",
164  "BIT_SHIFT" => "3",
165  "BIT_XOR" => "3",
166  "CLOSE" => "3",
167  "COMMIT" => "3",
168  "CONVERT" => "3",
169  "COPY" => "3",
170  "COUNT" => "3",
171  "CURRENTDATE" => "3",
172  "DATE" => "3",
173  "DEBUG" => "3",
174  "DELETE" => "3",
175  "EDI_READ_CHARSET" => "3",
176  "EDI_READ_INTERCHANGE" => "3",
177  "EDI_TRUNCATE" => "3",
178  "EXPRESSIONS" => "3",
179  "LOG" => "3",
180  "LEFT" => "3",
181  "REGEXP" => "3",
182  "READ" => "3",
183  "RIGHT" => "3",
184  "MOVE" => "3",
185  "NDEC" => "3",
186  "NOLOG" => "3",
187  "OPEN" => "3",
188  "PRINT" => "3",
189  "PRINTERR" => "3",
190  "PRAGMA" => "3",
191  "SLEEP" => "3",
192  "STRMID" => "3",
193  "STRLEN" => "3",
194  "STRFIELD" => "3",
195  "STRFIELDS" => "3",
196  "STR_FIELD" => "3",
197  "STR_FIELDS" => "3",
198  "STR_LOWER" => "3",
199  "STR_UPPER" => "3",
200  "STRCNV" => "3",
201  "SOURCEFILE" => "3",
202  "SOURCELINE" => "3",
203  "SOURCEMODULE" => "3",
204  "SOURCEPROCEDURE" => "3",
205  "SPLIT" => "3",
206  "SYSTEM" => "3",
207  "UNIQUE_ID" => "3",
208  "UNIQUE_NAME" => "3",
209  "AMTRIX_LOGID" => "4",
210  "ARGUMENT" => "4",
211  "ARG_LIST" => "4",
212  "ARG_OPT" => "4",
213  "ARGUMENTCOUNT" => "4",
214  "DIR_CLOSE" => "4",
215  "DIR_OPEN" => "4",
216  "DIR_READ" => "4",
217  "DIR_REWIND" => "4",
218  "GETOPT" => "4",
219  "OPTDTA_READ" => "4",
220  "OPTDTA_WRITE" => "4",
221  "RAW_CLOSE" => "4",
222  "RAW_FLUSH" => "4",
223  "RAW_OPEN" => "4",
224  "RAW_READ" => "4",
225  "RAW_SEEK" => "4",
226  "RAW_TELL" => "4",
227  "RAW_WRITE" => "4",
228  "RECEIVE" => "4",
229  "READTAG" => "4",
230  "TRUNCATE" => "4",
231  "TRUNC" => "4",
232  "SEND" => "4",
233  "SCAN" => "4",
234  "WRITETAG" => "4",
235  "ARG" => "5",
236  "EXTERNAL" => "5",
237  "MODULE" => "5",
238  "PGM" => "5",
239  "PUBLIC" => "5",
240  "TRANSFER" => "5",
241  "USE" => "5");
242 
243  // Special extensions
244 
245  // Each category can specify a PHP function that returns an altered
246  // version of the keyword.
247 
248 
249 
250  $this->linkscripts = array(
251  "1" => "donothing",
252  "2" => "donothing",
253  "3" => "donothing",
254  "4" => "donothing",
255  "5" => "donothing");
256  }
257 
258 
259  public function donothing($keywordin)
260  {
261  return $keywordin;
262  }
263  }
$BEAUT_PATH
Create styles array
The data for the language used.
Definition: HFile.php:21