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