ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_pearl.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_pearl extends HFile{
6  function HFile_pearl(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Pearl
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  "ACTIVATE" => "1",
46  "AFTER" => "1",
47  "ALL" => "1",
48  "ALPHIC" => "1",
49  "ALT" => "1",
50  "AT" => "1",
51  "BASIC" => "1",
52  "BEGIN" => "1",
53  "BIT" => "1",
54  "BOLT" => "1",
55  "BY" => "1",
56  "CALL" => "1",
57  "CASE" => "1",
58  "CHARACTER" => "1",
59  "CHAR" => "1",
60  "CLOCK" => "1",
61  "CLOSE" => "1",
62  "CONT" => "1",
63  "CONTINUE" => "1",
64  "CONTROL" => "1",
65  "CONVERT" => "1",
66  "CREATE" => "1",
67  "CREATED" => "1",
68  "CYCLE" => "1",
69  "DATION" => "1",
70  "DECLARE" => "1",
71  "DCL" => "1",
72  "DELETE" => "1",
73  "DIM" => "1",
74  "DIRECT" => "1",
75  "DISABLE" => "1",
76  "DURATION" => "1",
77  "DUR" => "1",
78  "DURING" => "1",
79  "ELSE" => "1",
80  "ENABLE" => "1",
81  "ENTER" => "1",
82  "ENTRY" => "1",
83  "EVERY" => "1",
84  "EXIT" => "1",
85  "FIN" => "1",
86  "FIXED" => "1",
87  "FLOAT" => "1",
88  "FOR" => "1",
89  "FORBACK" => "1",
90  "FORMAT" => "1",
91  "FORWARD" => "1",
92  "FREE" => "1",
93  "FROM" => "1",
94  "GET" => "1",
95  "GLOBAL" => "1",
96  "GOTO" => "1",
97  "HRS" => "1",
98  "IDENTIACAL" => "1",
99  "IDENT" => "1",
100  "IF" => "1",
101  "IN" => "1",
102  "INDUCE" => "1",
103  "INITIAL" => "1",
104  "INIT" => "1",
105  "INLINE" => "1",
106  "INOUT" => "1",
107  "INTERRUPT" => "1",
108  "IRPT" => "1",
109  "INTFAC" => "1",
110  "INV" => "1",
111  "IS" => "1",
112  "ISNT" => "1",
113  "LEAVE" => "1",
114  "LENGTH" => "1",
115  "MATCH" => "1",
116  "MAX" => "1",
117  "MIN" => "1",
118  "NIL" => "1",
119  "NOCYCL" => "1",
120  "NOMATCH" => "1",
121  "NOSTREAM" => "1",
122  "ON" => "1",
123  "ONEOF" => "1",
124  "OPEN" => "1",
125  "OPERATOR" => "1",
126  "OUT" => "1",
127  "PRECEDENCE" => "1",
128  "PRESET" => "1",
129  "PREVENT" => "1",
130  "PRIORITY" => "1",
131  "PUT" => "1",
132  "READ" => "1",
133  "REENT" => "1",
134  "REF" => "1",
135  "RELEASE" => "1",
136  "REPEAT" => "1",
137  "REQUEST" => "1",
138  "RESERVE" => "1",
139  "RESIDENT" => "1",
140  "RESUME" => "1",
141  "RETURN" => "1",
142  "RETURNS" => "1",
143  "SEC" => "1",
144  "SEMA" => "1",
145  "SEND" => "1",
146  "SIGNAL" => "1",
147  "SPECIFY" => "1",
148  "SPC" => "1",
149  "STREAM" => "1",
150  "STRUCT" => "1",
151  "SUSPEND" => "1",
152  "SYS" => "1",
153  "SYSTEM" => "1",
154  "TAKE" => "1",
155  "TERMINATE" => "1",
156  "TFU" => "1",
157  "THEN" => "1",
158  "TO" => "1",
159  "TRIGGER" => "1",
160  "TYPE" => "1",
161  "UNTIL" => "1",
162  "UPON" => "1",
163  "USING" => "1",
164  "WHEN" => "1",
165  "WHILE" => "1",
166  "WRITE" => "1",
167  "A" => "2",
168  "ABS" => "2",
169  "ADV" => "2",
170  "AND" => "2",
171  "ANY" => "2",
172  "B" => "2",
173  "B1" => "2",
174  "B2" => "2",
175  "B3" => "2",
176  "B4" => "2",
177  "CAN" => "2",
178  "CAT" => "2",
179  "COL" => "2",
180  "COS" => "2",
181  "CSHIFT" => "2",
182  "D" => "2",
183  "DATE" => "2",
184  "E" => "2",
185  "ENTIER" => "2",
186  "EQ" => "2",
187  "EXOR" => "2",
188  "EXP" => "2",
189  "F" => "2",
190  "FIT" => "2",
191  "GE" => "2",
192  "GT" => "2",
193  "IDF" => "2",
194  "LE" => "2",
195  "LINE" => "2",
196  "LIST" => "2",
197  "LN" => "2",
198  "LT" => "2",
199  "LWB" => "2",
200  "NE" => "2",
201  "NEW" => "2",
202  "NOT" => "2",
203  "NOW" => "2",
204  "OLD" => "2",
205  "OR" => "2",
206  "PAGE" => "2",
207  "POS" => "2",
208  "PRM" => "2",
209  "R" => "2",
210  "REM" => "2",
211  "ROUND" => "2",
212  "RST" => "2",
213  "S" => "2",
214  "SIGN" => "2",
215  "SIN" => "2",
216  "SKIP" => "2",
217  "SOP" => "2",
218  "SQRT" => "2",
219  "T" => "2",
220  "TAN" => "2",
221  "TANH" => "2",
222  "TOBIT" => "2",
223  "END" => "3",
224  "MODEND" => "3",
225  "MODULE" => "3",
226  "PROBLEM" => "3",
227  "PROCEDURE" => "3",
228  "PRIO" => "3",
229  "PROC" => "3",
230  "TASK" => "3");
231 
232 // Special extensions
233 
234 // Each category can specify a PHP function that returns an altered
235 // version of the keyword.
236 
237 
238 
239 $this->linkscripts = array(
240  "1" => "donothing",
241  "2" => "donothing",
242  "3" => "donothing");
243 }
244 
245 
246 function donothing($keywordin)
247 {
248  return $keywordin;
249 }
250 
251 }?>