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