ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_wml.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3if (!isset($BEAUT_PATH)) {
4 return;
5}
6require_once("$BEAUT_PATH/Beautifier/HFile.php");
7 class HFile_wml extends HFile
8 {
9 public function HFile_wml()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // WML
15 /*************************************/
16 // Flags
17
18 $this->nocase = "1";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22 // Colours
23
24 $this->colours = array("blue", "purple", "brown", "blue");
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 "//" => "1",
50 "/>" => "1",
51 "<" => "1",
52 "<!DOCTYPE" => "1",
53 "<![CDATA[" => "1",
54 "<a" => "1",
55 "</a>" => "1",
56 "<anchor" => "1",
57 "<anchor>" => "1",
58 "</anchor>" => "1",
59 "<access>" => "1",
60 "</access>" => "1",
61 "<b>" => "1",
62 "</b>" => "1",
63 "<big>" => "1",
64 "</big>" => "1",
65 "<br>" => "1",
66 "<br/>" => "1",
67 "<card" => "1",
68 "</card>" => "1",
69 "<do" => "1",
70 "</do>" => "1",
71 "<em>" => "1",
72 "</em>" => "1",
73 "<go" => "1",
74 "<head>" => "1",
75 "</head>" => "1",
76 "<i>" => "1",
77 "</i>" => "1",
78 "<meta" => "1",
79 "<p>" => "1",
80 "<p" => "1",
81 "</p>" => "1",
82 "<prev" => "1",
83 "<prev/>" => "1",
84 "</prev>" => "1",
85 "<small>" => "1",
86 "</small>" => "1",
87 "<strong>" => "1",
88 "</strong>" => "1",
89 "<table" => "1",
90 "<table>" => "1",
91 "</table>" => "1",
92 "<template>" => "1",
93 "</template>" => "1",
94 "<td" => "1",
95 "<td>" => "1",
96 "</td>" => "1",
97 "<tr" => "1",
98 "<tr>" => "1",
99 "</tr>" => "1",
100 "<u>" => "1",
101 "</u>" => "1",
102 "<wml>" => "1",
103 "</wml>" => "1",
104 "<xml>" => "1",
105 "</xml>" => "1",
106 "<xmp>" => "1",
107 "</xmp>" => "1",
108 "<xptr" => "1",
109 "<xr>" => "1",
110 "<xr" => "1",
111 "</xr>" => "1",
112 "<xref" => "1",
113 "<xsl>" => "1",
114 "</xsl>" => "1",
115 ">" => "1",
116 "]]>" => "1",
117 "<?php" => "1",
118 "<?phpxml" => "1",
119 "?>" => "1",
120 "accept-charset" => "2",
121 "align" => "2",
122 "alt" => "2",
123 "columns" => "2",
124 "content" => "2",
125 "domain" => "2",
126 "emptyok" => "2",
127 "format" => "2",
128 "forua" => "2",
129 "height" => "2",
130 "href" => "2",
131 "hspace" => "2",
132 "http-equiv" => "2",
133 "id" => "2",
134 "iname" => "2",
135 "ivalue" => "2",
136 "label" => "2",
137 "localsrc" => "2",
138 "maxlength" => "2",
139 "method" => "2",
140 "mode" => "2",
141 "multiple" => "2",
142 "name" => "2",
143 "newcontext" => "2",
144 "optional" => "2",
145 "ordered" => "2",
146 "path" => "2",
147 "scheme" => "2",
148 "sendreferer" => "2",
149 "size" => "2",
150 "src" => "2",
151 "tabindex" => "2",
152 "title" => "2",
153 "type" => "2",
154 "value" => "2",
155 "vspace" => "2",
156 "width" => "2",
157 "xml:lang" => "2",
158 "=" => "2",
159 "&amp;" => "4",
160 "&apos;" => "4",
161 "&gt;" => "4",
162 "&lt;" => "4",
163 "&nbsp;" => "4",
164 "&quot;" => "4",
165 "&shy;" => "4",
166 "onenterbackward=" => "5",
167 "onenterforward=" => "5",
168 "onpick=" => "5",
169 "ontimer=" => "5");
170
171 // Special extensions
172
173 // Each category can specify a PHP function that returns an altered
174 // version of the keyword.
175
176
177
178 $this->linkscripts = array(
179 "1" => "donothing",
180 "2" => "donothing",
181 "4" => "donothing",
182 "5" => "donothing");
183 }
184
185
186 public function donothing($keywordin)
187 {
188 return $keywordin;
189 }
190 }
donothing($keywordin)
$BEAUT_PATH
Definition: HFile_wml.php:2
An exception for terminatinating execution or to throw for unit testing.