ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_wml Class Reference
+ Inheritance diagram for HFile_wml:
+ Collaboration diagram for HFile_wml:

Public Member Functions

 HFile_wml ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 7 of file HFile_wml.php.

Member Function Documentation

◆ donothing()

HFile_wml::donothing (   $keywordin)

Definition at line 186 of file HFile_wml.php.

187  {
188  return $keywordin;
189  }

◆ HFile_wml()

HFile_wml::HFile_wml ( )

Definition at line 9 of file HFile_wml.php.

References array.

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  }
Create styles array
The data for the language used.
Definition: HFile.php:21

The documentation for this class was generated from the following file: