ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_css.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_css extends HFile
8  {
9  public function HFile_css()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // CSS
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // String characters and delimiters
23 
24  $this->stringchars = array();
25  $this->delimiters = array(",", ".", ":", ";", "{", " ", "}", " ", " ");
26  $this->escchar = "";
27 
28  // Comment settings
29 
30  $this->blockcommenton = array("<!--");
31  $this->blockcommentoff = array("-->");
32 
33  // Keywords (keyword mapping to colour number)
34 
35  $this->keywords = array(
36  "A" => "1",
37  "ABOVE" => "1",
38  "ACTIVE" => "1",
39  "ADDRESS" => "1",
40  "APPLET" => "1",
41  "ARRAY" => "1",
42  "AREA" => "1",
43  "B" => "1",
44  "BASE" => "1",
45  "BASEFONT" => "1",
46  "BGSOUND" => "1",
47  "BIG" => "1",
48  "BLINK" => "1",
49  "BLOCKQUOTE" => "1",
50  "BODY" => "1",
51  "BR" => "1",
52  "CAPTION" => "1",
53  "CENTER" => "1",
54  "CITE" => "1",
55  "CODE" => "1",
56  "DD" => "1",
57  "DFN" => "1",
58  "DIR" => "1",
59  "DIV" => "1",
60  "DL" => "1",
61  "DT" => "1",
62  "EM" => "1",
63  "EMBED" => "1",
64  "FIG" => "1",
65  "FIRST-LETTER" => "1",
66  "FIRST-LINE" => "1",
67  "FONT" => "1",
68  "FORM" => "1",
69  "FRAME" => "1",
70  "FRAMESET" => "1",
71  "H" => "1",
72  "H1" => "1",
73  "H2" => "1",
74  "H3" => "1",
75  "H4" => "1",
76  "H5" => "1",
77  "H6" => "1",
78  "HEAD" => "1",
79  "HR" => "1",
80  "HTML" => "1",
81  "I" => "1",
82  "IMG" => "1",
83  "INPUT" => "1",
84  "ISINDEX" => "1",
85  "KBD" => "1",
86  "LI" => "1",
87  "LINK" => "1",
88  "MAP" => "1",
89  "MARQUEE" => "1",
90  "MENU" => "1",
91  "META" => "1",
92  "NEXTID" => "1",
93  "NOBR" => "1",
94  "NOFRAMES" => "1",
95  "NOTE" => "1",
96  "NOSCRIPT" => "1",
97  "OL" => "1",
98  "OPTION" => "1",
99  "P" => "1",
100  "PRE" => "1",
101  "RANGE" => "1",
102  "ROOT" => "1",
103  "SPAN" => "1",
104  "SAMP" => "1",
105  "SCRIPT" => "1",
106  "SELECT" => "1",
107  "SMALL" => "1",
108  "SOUND" => "1",
109  "SQRT" => "1",
110  "STYLE" => "1",
111  "STRIKE" => "1",
112  "STRONG" => "1",
113  "SUB" => "1",
114  "SUP" => "1",
115  "TABLE" => "1",
116  "TD" => "1",
117  "TEXT" => "1",
118  "TEXTAREA" => "1",
119  "TH" => "1",
120  "TITLE" => "1",
121  "TR" => "1",
122  "TT" => "1",
123  "U" => "1",
124  "UL" => "1",
125  "VAR" => "1",
126  "VISITED" => "1",
127  "WBR" => "1",
128  "background" => "2",
129  "background-attachment" => "2",
130  "background-color" => "2",
131  "background-image" => "2",
132  "background-position" => "2",
133  "background-repeat" => "2",
134  "border" => "2",
135  "border-bottom" => "2",
136  "border-bottom-width" => "2",
137  "border-color" => "2",
138  "border-left" => "2",
139  "border-left-width" => "2",
140  "border-right" => "2",
141  "border-right-width" => "2",
142  "border-style" => "2",
143  "border-top" => "2",
144  "border-top-width" => "2",
145  "border-width" => "2",
146  "clear" => "2",
147  "color" => "2",
148  "display" => "2",
149  "float" => "2",
150  "font" => "2",
151  "font-family" => "2",
152  "font-size" => "2",
153  "font-style" => "2",
154  "font-variant" => "2",
155  "font-weight" => "2",
156  "height" => "2",
157  "letter-spacing" => "2",
158  "line-height" => "2",
159  "list-style" => "2",
160  "list-style-image" => "2",
161  "list-style-position" => "2",
162  "list-style-type" => "2",
163  "margin" => "2",
164  "margin-bottom" => "2",
165  "margin-left" => "2",
166  "margin-right" => "2",
167  "margin-top" => "2",
168  "padding" => "2",
169  "padding-bottom" => "2",
170  "padding-left" => "2",
171  "padding-right" => "2",
172  "padding-top" => "2",
173  "text-align" => "2",
174  "text-decoration" => "2",
175  "text-indent" => "2",
176  "text-transform" => "2",
177  "vertical-align" => "2",
178  "white-space" => "2",
179  "width" => "2",
180  "word-spacing" => "2",
181  "aqua" => "3",
182  "auto" => "3",
183  "baseline" => "3",
184  "black" => "3",
185  "blink" => "3",
186  "block" => "3",
187  "blue" => "3",
188  "bold" => "3",
189  "bolder" => "3",
190  "both" => "3",
191  "bottom" => "3",
192  "capitalize" => "3",
193  "center" => "3",
194  "circle" => "3",
195  "cursive" => "3",
196  "dashed" => "3",
197  "decimal" => "3",
198  "disc" => "3",
199  "dotted" => "3",
200  "double" => "3",
201  "fantasy" => "3",
202  "fixed" => "3",
203  "fuchsia" => "3",
204  "gray" => "3",
205  "green" => "3",
206  "groove" => "3",
207  "inline" => "3",
208  "inset" => "3",
209  "inside" => "3",
210  "italic" => "3",
211  "justify" => "3",
212  "large" => "3",
213  "larger" => "3",
214  "left" => "3",
215  "lighter" => "3",
216  "lime" => "3",
217  "line-through" => "3",
218  "list-item" => "3",
219  "lower-alpha" => "3",
220  "lower-roman" => "3",
221  "lowercase" => "3",
222  "maroon" => "3",
223  "medium" => "3",
224  "middle" => "3",
225  "monospace" => "3",
226  "navy" => "3",
227  "no-repeat" => "3",
228  "none" => "3",
229  "normal" => "3",
230  "nowrap" => "3",
231  "oblique" => "3",
232  "olive" => "3",
233  "outset" => "3",
234  "outside" => "3",
235  "overline" => "3",
236  "pre" => "3",
237  "purple" => "3",
238  "red" => "3",
239  "repeat" => "3",
240  "repeat-x" => "3",
241  "repeat-y" => "3",
242  "rgb" => "3",
243  "ridge" => "3",
244  "right" => "3",
245  "sans-serif" => "3",
246  "scroll" => "3",
247  "serif" => "3",
248  "silver" => "3",
249  "small" => "3",
250  "small-caps" => "3",
251  "smaller" => "3",
252  "solid" => "3",
253  "square" => "3",
254  "sub" => "3",
255  "super" => "3",
256  "teal" => "3",
257  "text-bottom" => "3",
258  "text-top" => "3",
259  "thick" => "3",
260  "thin" => "3",
261  "top" => "3",
262  "transparent" => "3",
263  "underline" => "3",
264  "upper-alpha" => "3",
265  "upper-roman" => "3",
266  "uppercase" => "3",
267  "url" => "3",
268  "white" => "3",
269  "x-large" => "3",
270  "x-small" => "3",
271  "xx-large" => "3",
272  "xx-small" => "3",
273  "yellow" => "3");
274 
275  // Special extensions
276 
277  // Each category can specify a PHP function that returns an altered
278  // version of the keyword.
279 
280 
281 
282  $this->linkscripts = array(
283  "1" => "donothing",
284  "2" => "donothing",
285  "3" => "donothing");
286  }
287 
288 
289  public function donothing($keywordin)
290  {
291  return $keywordin;
292  }
293  }
donothing($keywordin)
Definition: HFile_css.php:289
$BEAUT_PATH
Definition: HFile_css.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21
HFile_css()
Definition: HFile_css.php:9