ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_wap.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_wap extends HFile{
6  function HFile_wap(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // WAP
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");
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  "=" => "1",
46  "<" => "1",
47  ">" => "1",
48  "<a>" => "1",
49  "<a" => "1",
50  "<access>" => "1",
51  "<access" => "1",
52  "<anchor>" => "1",
53  "<anchor" => "1",
54  "<b>" => "1",
55  "<big>" => "1",
56  "<br/>" => "1",
57  "<card>" => "1",
58  "<card" => "1",
59  "<do>" => "1",
60  "<do" => "1",
61  "<em>" => "1",
62  "<fieldset>" => "1",
63  "<fieldset" => "1",
64  "<go" => "1",
65  "<head>" => "1",
66  "<i>" => "1",
67  "<img" => "1",
68  "<input" => "1",
69  "<meta" => "1",
70  "<noop/>" => "1",
71  "<option>" => "1",
72  "<option" => "1",
73  "<optgroup>" => "1",
74  "<optgroup" => "1",
75  "<onevent" => "1",
76  "<p>" => "1",
77  "<p" => "1",
78  "<prev>" => "1",
79  "<prev/>" => "1",
80  "<postfield>" => "1",
81  "<postfield" => "1",
82  "<refresh>" => "1",
83  "<select" => "1",
84  "<setvar" => "1",
85  "<small>" => "1",
86  "<strong>" => "1",
87  "<table>" => "1",
88  "<table" => "1",
89  "<td>" => "1",
90  "<td" => "1",
91  "<template>" => "1",
92  "<template" => "1",
93  "<tr>" => "1",
94  "<tr" => "1",
95  "<timer>" => "1",
96  "<timer" => "1",
97  "<u>" => "1",
98  "<wml>" => "1",
99  "</a>" => "2",
100  "</access>" => "2",
101  "</anchor>" => "2",
102  "</b>" => "2",
103  "</big>" => "2",
104  "</card>" => "2",
105  "</do>" => "2",
106  "</em>" => "2",
107  "</fieldset>" => "2",
108  "</go>" => "2",
109  "</head>" => "2",
110  "</i>" => "2",
111  "</img>" => "2",
112  "</input>" => "2",
113  "</meta>" => "2",
114  "</option>" => "2",
115  "</optgroup>" => "2",
116  "</onevent>" => "2",
117  "</p>" => "2",
118  "</prev>" => "2",
119  "</postfield>" => "2",
120  "</refresh>" => "2",
121  "</select>" => "2",
122  "</setvar>" => "2",
123  "</small>" => "2",
124  "</strong>" => "2",
125  "</table>" => "2",
126  "</td>" => "2",
127  "</template>" => "2",
128  "</tr>" => "2",
129  "</timer>" => "2",
130  "</u>" => "2",
131  "</wml>" => "2",
132  "'" => "3",
133  "\"" => "3",
134  "accept-charset=" => "3",
135  "align=" => "3",
136  "alt=" => "3",
137  "columns=" => "3",
138  "content=" => "3",
139  "domain=" => "3",
140  "emptyok=" => "3",
141  "format=" => "3",
142  "forua=" => "3",
143  "height=" => "3",
144  "href=" => "3",
145  "hspace=" => "3",
146  "http-equiv=" => "3",
147  "id=" => "3",
148  "iname=" => "3",
149  "ivalue=" => "3",
150  "label=" => "3",
151  "localsrc=" => "3",
152  "maxlength=" => "3",
153  "method=" => "3",
154  "mode=" => "3",
155  "multiple=" => "3",
156  "name=" => "3",
157  "nextcontext=" => "3",
158  "onpick=" => "3",
159  "optional=" => "3",
160  "ontimer=" => "3",
161  "ordered=" => "3",
162  "path=" => "3",
163  "sendreferer=" => "3",
164  "src=" => "3",
165  "title=" => "3",
166  "type=" => "3",
167  "value=" => "3",
168  "vspace=" => "3",
169  "width=" => "3",
170  "xml:lang=" => "3",
171  "accept" => "4",
172  "action" => "4",
173  "bottom" => "4",
174  "Cache-Control" => "4",
175  "center" => "4",
176  "delete" => "4",
177  "false" => "4",
178  "get" => "4",
179  "left" => "4",
180  "max-age" => "4",
181  "nowrap" => "4",
182  "onenterforward" => "4",
183  "onenterbackward" => "4",
184  "onpick" => "4",
185  "ontimer" => "4",
186  "options" => "4",
187  "passwd" => "4",
188  "password" => "4",
189  "prevpost" => "4",
190  "right" => "4",
191  "text" => "4",
192  "timer" => "4",
193  "true" => "4",
194  "wrap" => "4");
195 
196 // Special extensions
197 
198 // Each category can specify a PHP function that returns an altered
199 // version of the keyword.
200 
201 
202 
203 $this->linkscripts = array(
204  "1" => "donothing",
205  "2" => "donothing",
206  "3" => "donothing",
207  "4" => "donothing");
208 }
209 
210 
211 function donothing($keywordin)
212 {
213  return $keywordin;
214 }
215 
216 }?>