ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_rebol.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_rebol extends HFile{
6  function HFile_rebol(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // REBOL
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");
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  "about" => "1",
46  "absolute" => "1",
47  "add" => "1",
48  "alias" => "1",
49  "all" => "1",
50  "and" => "1",
51  "any" => "1",
52  "append" => "1",
53  "arccosine" => "1",
54  "arcsine" => "1",
55  "arctangent" => "1",
56  "array" => "1",
57  "ask" => "1",
58  "at" => "1",
59  "back" => "1",
60  "break" => "1",
61  "bind" => "1",
62  "catch" => "1",
63  "change" => "1",
64  "change-dir" => "1",
65  "charset" => "1",
66  "checksum" => "1",
67  "clear" => "1",
68  "close" => "1",
69  "comment" => "1",
70  "complement" => "1",
71  "compress" => "1",
72  "confirm" => "1",
73  "copy" => "1",
74  "cosine" => "1",
75  "debase" => "1",
76  "decompress" => "1",
77  "dehex" => "1",
78  "delete" => "1",
79  "detab" => "1",
80  "disarm" => "1",
81  "divide" => "1",
82  "do" => "1",
83  "echo" => "1",
84  "either" => "1",
85  "enbase" => "1",
86  "entab" => "1",
87  "exit" => "1",
88  "exp" => "1",
89  "false" => "1",
90  "fifth" => "1",
91  "find" => "1",
92  "first" => "1",
93  "for" => "1",
94  "forall" => "1",
95  "foreach" => "1",
96  "form" => "1",
97  "forskip" => "1",
98  "fourth" => "1",
99  "func" => "1",
100  "function" => "1",
101  "get" => "1",
102  "halt" => "1",
103  "head" => "1",
104  "help" => "1",
105  "if" => "1",
106  "in" => "1",
107  "input" => "1",
108  "insert" => "1",
109  "intersect" => "1",
110  "join" => "1",
111  "last" => "1",
112  "less" => "1",
113  "third" => "1",
114  "throw" => "1",
115  "to-binary" => "1",
116  "to-bitset" => "1",
117  "to-block" => "1",
118  "to-char" => "1",
119  "to-date" => "1",
120  "to-decimal" => "1",
121  "to-email" => "1",
122  "to-file" => "1",
123  "to-get-word" => "1",
124  "to-hash" => "1",
125  "to-hex" => "1",
126  "to-idate" => "1",
127  "to-integer" => "1",
128  "to-issue" => "1",
129  "to-list" => "1",
130  "to-lit-word" => "1",
131  "to-logic" => "1",
132  "to-money" => "1",
133  "to-none" => "1",
134  "to-paren" => "1",
135  "to-refinement" => "1",
136  "to-set-path" => "1",
137  "to-set-word" => "1",
138  "to-string" => "1",
139  "to-tag" => "1",
140  "to-time" => "1",
141  "to-tuple" => "1",
142  "to-url" => "1",
143  "to-word" => "1",
144  "trace" => "1",
145  "trim" => "1",
146  "true" => "1",
147  "try" => "1",
148  "union" => "1",
149  "unset" => "1",
150  "until" => "1",
151  "update" => "1",
152  "uppercase" => "1",
153  "usage" => "1",
154  "use" => "1",
155  "wait" => "1",
156  "what" => "1",
157  "what-dir" => "1",
158  "while" => "1",
159  "write" => "1",
160  "xor" => "1",
161  "yes" => "1",
162  "any-block!" => "2",
163  "any-function!" => "2",
164  "any-string!" => "2",
165  "any-type!" => "2",
166  "any-word!" => "2",
167  "binary!" => "2",
168  "bitset!" => "2",
169  "block!" => "2",
170  "char!" => "2",
171  "datatype!" => "2",
172  "date!" => "2",
173  "decimal!" => "2",
174  "email!" => "2",
175  "error!" => "2",
176  "file!" => "2",
177  "function!" => "2",
178  "get-word!" => "2",
179  "hash!" => "2",
180  "integer!" => "2",
181  "issue!" => "2",
182  "time!" => "2",
183  "tuple!" => "2",
184  "url!" => "2",
185  "word!" => "2",
186  "any-block?" => "3",
187  "any-function?" => "3",
188  "any-string?" => "3",
189  "any-type?" => "3",
190  "any-word?" => "3",
191  "binary?" => "3",
192  "bitset?" => "3",
193  "block?" => "3",
194  "char?" => "3",
195  "datatype?" => "3",
196  "date?" => "3",
197  "decimal?" => "3",
198  "dir?" => "3",
199  "email?" => "3",
200  "empty?" => "3",
201  "equal?" => "3",
202  "error?" => "3",
203  "even?" => "3",
204  "exists?" => "3",
205  "file?" => "3",
206  "found?" => "3",
207  "function?" => "3",
208  "get-word?" => "3",
209  "greater?" => "3",
210  "greater-or-equal?" => "3",
211  "hash?" => "3",
212  "head?" => "3",
213  "index?" => "3",
214  "info?" => "3",
215  "input?" => "3",
216  "integer?" => "3",
217  "issue?" => "3",
218  "length?" => "3",
219  "time?" => "3",
220  "tuple?" => "3",
221  "type?" => "3",
222  "unset?" => "3",
223  "url?" => "3",
224  "value?" => "3",
225  "word?" => "3",
226  "zero?" => "3");
227 
228 // Special extensions
229 
230 // Each category can specify a PHP function that returns an altered
231 // version of the keyword.
232 
233 
234 
235 $this->linkscripts = array(
236  "1" => "donothing",
237  "2" => "donothing",
238  "3" => "donothing");
239 }
240 
241 
242 function donothing($keywordin)
243 {
244  return $keywordin;
245 }
246 
247 }?>