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