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