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