ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_coldfusion431.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_coldfusion431 extends HFile{
6  function HFile_coldfusion431(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 //
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple");
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  "/L10" => "",
46  "Nocase" => "",
47  "Noquote" => "",
48  "HTML_LANG" => "",
49  "Block" => "",
50  "Comment" => "",
51  "On" => "",
52  "=" => "",
53  "<!" => "",
54  "Off" => "",
55  ">" => "",
56  "File" => "",
57  "Extensions" => "",
58  "HTM" => "",
59  "HTML" => "",
60  "DBM" => "",
61  "CFM" => "",
62  "<A>" => "1",
63  "</A>" => "1",
64  "<ABOVE>" => "1",
65  "<ADDRESS>" => "1",
66  "</ADDRESS>" => "1",
67  "<APPLET" => "1",
68  "</APPLET>" => "1",
69  "<ARRAY>" => "1",
70  "<AREA" => "1",
71  "</AREA>" => "1",
72  "<B>" => "1",
73  "</B>" => "1",
74  "<BASE" => "1",
75  "<BASEFONT" => "1",
76  "<BGSOUND" => "1",
77  "<BIG>" => "1",
78  "</BIG>" => "1",
79  "<BLINK>" => "1",
80  "</BLINK>" => "1",
81  "<BLOCKQUOTE>" => "1",
82  "</BLOCKQUOTE>" => "1",
83  "<BODY" => "1",
84  "<BODY>" => "1",
85  "</BODY>" => "1",
86  "<BOX>" => "1",
87  "<BR" => "1",
88  "<BR>" => "1",
89  "<CAPTION>" => "1",
90  "</CAPTION>" => "1",
91  "<CENTER>" => "1",
92  "</CENTER>" => "1",
93  "<CITE>" => "1",
94  "</CITE>" => "1",
95  "<CODE>" => "1",
96  "</CODE>" => "1",
97  "<CFIF>" => "1",
98  "<CFELSE>" => "1",
99  "</CFIF>" => "1",
100  "<CFSET" => "1",
101  "<CFQUERY" => "1",
102  "</CFQUERY>" => "1",
103  "<CFOUTPUT>" => "1",
104  "</CFOUTPUT>" => "1",
105  "<CFMAIL" => "1",
106  "</CFMAIL>" => "1",
107  "<CFINSERT" => "1",
108  "<CFLOCATION" => "1",
109  "<CFINCLUDE" => "1",
110  "<CFOUTPUT" => "1",
111  "<CFABORT>" => "1",
112  "<CFSQL" => "1",
113  "<CFCOOKIE" => "1",
114  "<CFLOOP" => "1",
115  "</CFLOOP>" => "1",
116  "<DD>" => "1",
117  "<DFN>" => "1",
118  "<DIR>" => "1",
119  "</DIR>" => "1",
120  "<DIV>" => "1",
121  "</DIV>" => "1",
122  "<DL>" => "1",
123  "</DL>" => "1",
124  "<DT>" => "1",
125  "<DBIF" => "1",
126  "<DBELSE>" => "1",
127  "</DBIF>" => "1",
128  "<DBSET" => "1",
129  "<DBQUERY" => "1",
130  "</DBQUERY>" => "1",
131  "<DBOUTPUT>" => "1",
132  "</DBOUTPUT>" => "1",
133  "<DBMAIL" => "1",
134  "</DBMAIL>" => "1",
135  "<DBINSERT" => "1",
136  "<DBLOCATION" => "1",
137  "<DBINCLUDE" => "1",
138  "<DBOUTPUT" => "1",
139  "<DBABORT>" => "1",
140  "<DBSQL" => "1",
141  "<DBCOOKIE>" => "1",
142  "<EM>" => "1",
143  "</EM>" => "1",
144  "<EMBED>" => "1",
145  "<FIG>" => "1",
146  "<FONT" => "1",
147  "</FONT>" => "1",
148  "<FORM>" => "1",
149  "<FORM" => "1",
150  "</FORM>" => "1",
151  "<FRAME" => "1",
152  "<FRAMESET" => "1",
153  "</FRAMESET>" => "1",
154  "<H>" => "1",
155  "<H1>" => "1",
156  "<H2>" => "1",
157  "<H3>" => "1",
158  "<H4>" => "1",
159  "<H5>" => "1",
160  "<H6>" => "1",
161  "</H1>" => "1",
162  "</H2>" => "1",
163  "</H3>" => "1",
164  "</H4>" => "1",
165  "</H5>" => "1",
166  "</H6>" => "1",
167  "<HEAD>" => "1",
168  "</HEAD>" => "1",
169  "<HR>" => "1",
170  "<HR" => "1",
171  "<HTML>" => "1",
172  "</HTML>" => "1",
173  "<I>" => "1",
174  "</I>" => "1",
175  "<IMG" => "1",
176  "<INPUT>" => "1",
177  "<INPUT" => "1",
178  "</INPUT>" => "1",
179  "<ISINDEX>" => "1",
180  "<KBD>" => "1",
181  "</KBD>" => "1",
182  "<LI>" => "1",
183  "<LINK" => "1",
184  "</LI>" => "1",
185  "<MAP" => "1",
186  "</MAP>" => "1",
187  "<MARQUEE" => "1",
188  "</MARQUEE>" => "1",
189  "<MENU>" => "1",
190  "</MENU>" => "1",
191  "<META>" => "1",
192  "<NEXTID" => "1",
193  "<NOBR>" => "1",
194  "</NOBR>" => "1",
195  "<NOFRAMES>" => "1",
196  "</NOFRAMES>" => "1",
197  "<NOTE>" => "1",
198  "</NOTE>" => "1",
199  "<OL>" => "1",
200  "</OL>" => "1",
201  "<OPTION>" => "1",
202  "<P" => "1",
203  "<P>" => "1",
204  "</P>" => "1",
205  "<PRE>" => "1",
206  "</PRE>" => "1",
207  "<RANGE>" => "1",
208  "<ROOT>" => "1",
209  "<SAMP>" => "1",
210  "</SAMP>" => "1",
211  "<SCRIPT" => "1",
212  "</SCRIPT>" => "1",
213  "<SELECT>" => "1",
214  "</SELECT>" => "1",
215  "<SMALL>" => "1",
216  "</SMALL>" => "1",
217  "<SOUND" => "1",
218  "<SQRT>" => "1",
219  "<STYLE>" => "1",
220  "<STRIKE>" => "1",
221  "</STRIKE>" => "1",
222  "<STRONG>" => "1",
223  "</STRONG>" => "1",
224  "<SUB>" => "1",
225  "</SUB>" => "1",
226  "<SUP>" => "1",
227  "</SUP>" => "1",
228  "<SELECT" => "1",
229  "<TABLE>" => "1",
230  "<TABLE" => "1",
231  "</TABLE>" => "1",
232  "<TD" => "1",
233  "<TD>" => "1",
234  "</TD>" => "1",
235  "<TEXT>" => "1",
236  "<TEXTAREA>" => "1",
237  "</TEXTAREA>" => "1",
238  "<TH>" => "1",
239  "</TH>" => "1",
240  "<TITLE>" => "1",
241  "</TITLE>" => "1",
242  "<TR" => "1",
243  "<TR>" => "1",
244  "</TR>" => "1",
245  "<TT>" => "1",
246  "</TT>" => "1",
247  "<U>" => "1",
248  "</U>" => "1",
249  "<UL>" => "1",
250  "</UL>" => "1",
251  "<VAR>" => "1",
252  "</VAR>" => "1",
253  "<WBR>" => "1",
254  "ACTION=" => "2",
255  "ALIGN=" => "2",
256  "ALINK=" => "2",
257  "ALT=" => "2",
258  "AUTOSTART=" => "2",
259  "BACKGROUND=" => "2",
260  "BEHAVIOR" => "2",
261  "BELOW" => "2",
262  "BGCOLOR=" => "2",
263  "BORDER=" => "2",
264  "BORDER" => "2",
265  "CELLPADDING" => "2",
266  "CELLSPACING" => "2",
267  "COLS" => "2",
268  "COLSPAN" => "2",
269  "COLOR=" => "2",
270  "DATASOURCE=" => "2",
271  "DIRECTION" => "2",
272  "ENDROW=" => "2",
273  "FACE=" => "2",
274  "FORMFIELDS=" => "2",
275  "FROM=" => "2",
276  "HEIGHT=" => "2",
277  "HREF=" => "2",
278  "HIDDEN=" => "2",
279  "ISMAP" => "2",
280  "LANGUAGE" => "2",
281  "LINK" => "2",
282  "LOOP=" => "2",
283  "MAXROWS=" => "2",
284  "METHOD=" => "2",
285  "MARGINHEIGHT=" => "2",
286  "MARGINWIDTH=" => "2",
287  "NAME=" => "2",
288  "ONLOAD" => "2",
289  "QUERY=" => "2",
290  "ROWS" => "2",
291  "ROWSPAN" => "2",
292  "SIZE=" => "2",
293  "SQL=" => "2",
294  "SRC=" => "2",
295  "START" => "2",
296  "SUBJECT=" => "2",
297  "STARTROW=" => "2",
298  "TEXT=" => "2",
299  "TOPMARGIN" => "2",
300  "TYPE=" => "2",
301  "TO=" => "2",
302  "TEMPLATE=" => "2",
303  "TABLENAME=" => "2",
304  "URL=" => "2",
305  "VALIGN=" => "2",
306  "VALUE=" => "2",
307  "VLINK=" => "2",
308  "VOLUME=" => "2",
309  "WIDTH=" => "2");
310 
311 // Special extensions
312 
313 // Each category can specify a PHP function that returns an altered
314 // version of the keyword.
315 
316 
317 
318 $this->linkscripts = array(
319  "" => "donothing",
320  "1" => "donothing",
321  "2" => "donothing");
322 }
323 
324 
325 function donothing($keywordin)
326 {
327  return $keywordin;
328 }
329 
330 }?>