ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_visdialog.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_visdialog extends HFile{
6  function HFile_visdialog(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Visual Dialog Script
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown", "blue");
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("REM");
39 $this->blockcommenton = array("");
40 $this->blockcommentoff = array("");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "@" => "1",
46  "ALT" => "1",
47  "ASC" => "1",
48  "ASK" => "1",
49  "CHR" => "1",
50  "CLICK" => "1",
51  "COUNT" => "1",
52  "CR" => "1",
53  "CTRL" => "1",
54  "CURDIR" => "1",
55  "DATETIME" => "1",
56  "DDEITEM" => "1",
57  "DIFF" => "1",
58  "DIRDLG" => "1",
59  "DIV" => "1",
60  "DLGTEXT" => "1",
61  "ENV" => "1",
62  "EQUAL" => "1",
63  "ESC" => "1",
64  "EVENT" => "1",
65  "EXT" => "1",
66  "FILEDLG" => "1",
67  "FORMAT" => "1",
68  "GREATER" => "1",
69  "HEX" => "1",
70  "INDEX" => "1",
71  "INIREAD" => "1",
72  "INPUT" => "1",
73  "ITEM" => "1",
74  "KEY" => "1",
75  "LEN" => "1",
76  "LOWER" => "1",
77  "MATCH" => "1",
78  "MCI" => "1",
79  "MSGBOX" => "1",
80  "NAME" => "1",
81  "NEXT" => "1",
82  "NOT" => "1",
83  "NULL" => "1",
84  "NUMERIC" => "1",
85  "OK" => "1",
86  "PATH" => "1",
87  "POS" => "1",
88  "PRED" => "1",
89  "PROD" => "1",
90  "QUERY" => "1",
91  "REGREAD" => "1",
92  "RETCODE" => "1",
93  "SENDMSG" => "1",
94  "SHIFT" => "1",
95  "SHORTNAME" => "1",
96  "STRDEL" => "1",
97  "STRINS" => "1",
98  "SUBSTR" => "1",
99  "SUCC" => "1",
100  "SUM" => "1",
101  "SYSINFO" => "1",
102  "TAB" => "1",
103  "TRIM" => "1",
104  "UPPER" => "1",
105  "VERINFO" => "1",
106  "VOLINFO" => "1",
107  "WINACTIVE" => "1",
108  "WINATPOINT" => "1",
109  "WINCLASS" => "1",
110  "WINDIR" => "1",
111  "WINEXISTS" => "1",
112  "WINPOS" => "1",
113  "WINTEXT" => "1",
114  "ZERO" => "1",
115  "BEEP" => "2",
116  "CLIPBOARD" => "2",
117  "DDE" => "2",
118  "DIALOG" => "2",
119  "DIRECTORY" => "2",
120  "EXIT" => "2",
121  "EXITWIN" => "2",
122  "EXTERNAL" => "2",
123  "ELSE" => "2",
124  "END" => "2",
125  "GOSUB" => "2",
126  "GOTO" => "2",
127  "FILE" => "2",
128  "IF" => "2",
129  "INFO" => "2",
130  "INIFILE" => "2",
131  "LINK" => "2",
132  "LIST" => "2",
133  "OPTION" => "2",
134  "PARSE" => "2",
135  "PLAY" => "2",
136  "REGISTRY" => "2",
137  "REPEAT" => "2",
138  "RUN" => "2",
139  "RUNH" => "2",
140  "RUNM" => "2",
141  "RUNZ" => "2",
142  "SHELL" => "2",
143  "STOP" => "2",
144  "TITLE" => "2",
145  "UNTIL" => "2",
146  "WAIT" => "2",
147  "WARN" => "2",
148  "WINDOW" => "2",
149  "WINHELP" => "2",
150  "%" => "3",
151  "%1" => "3",
152  "%2" => "3",
153  "%3" => "3",
154  "%4" => "3",
155  "%5" => "3",
156  "%6" => "3",
157  "%7" => "3",
158  "%8" => "3",
159  "%9" => "3",
160  "%0" => "3",
161  "%10" => "3",
162  "%A" => "3",
163  "%B" => "3",
164  "%C" => "3",
165  "%D" => "3",
166  "%E" => "3",
167  "%F" => "3",
168  "%G" => "3",
169  "%H" => "3",
170  "%I" => "3",
171  "%J" => "3",
172  "%K" => "3",
173  "%L" => "3",
174  "%M" => "3",
175  "%N" => "3",
176  "%O" => "3",
177  "%P" => "3",
178  "%Q" => "3",
179  "%R" => "3",
180  "%S" => "3",
181  "%T" => "3",
182  "%U" => "3",
183  "%V" => "3",
184  "%W" => "3",
185  "%X" => "3",
186  "%Y" => "3",
187  "%Z" => "3",
188  "APPEND" => "4",
189  "ADD" => "4",
190  "ASSIGN" => "4",
191  "ACTIVATE" => "4",
192  "CLEAR" => "4",
193  "CLEARSEL" => "4",
194  "CLOSE" => "4",
195  "CREATE" => "4",
196  "CURSOR" => "4",
197  "CHANGE" => "4",
198  "COPY" => "4",
199  "DISABLE" => "4",
200  "DELETE" => "4",
201  "DROPFILES" => "4",
202  "EXECUTE" => "4",
203  "ENABLE" => "4",
204  "ERRORTRAP" => "4",
205  "FOCUS" => "4",
206  "FILELIST" => "4",
207  "FIELDSEP" => "4",
208  "FILENAMES" => "4",
209  "HIDE" => "4",
210  "INSERT" => "4",
211  "ICONIZE" => "4",
212  "LOADFILE" => "4",
213  "LOADTEXT" => "4",
214  "MAXIMIZE" => "4",
215  "NORMAL" => "4",
216  "OPEN" => "4",
217  "ONTOP" => "4",
218  "POKE" => "4",
219  "POPUP" => "4",
220  "POWEROFF" => "4",
221  "PASTE" => "4",
222  "PUT" => "4",
223  "PRIORITY" => "4",
224  "POSITION" => "4",
225  "REBOOT" => "4",
226  "RENAME" => "4",
227  "REGKEYS" => "4",
228  "REGVALS" => "4",
229  "REGBUF" => "4",
230  "SET" => "4",
231  "SHOW" => "4",
232  "SHUTDOWN" => "4",
233  "SETDATE" => "4",
234  "SETATTR" => "4",
235  "SEEK" => "4",
236  "SAVEFILE" => "4",
237  "SCALE" => "4",
238  "SKDELAY" => "4",
239  "SLEEPTIME" => "4",
240  "SEND" => "4",
241  "SETTEXT" => "4",
242  "TERMINATE" => "4",
243  "WRITE" => "4",
244  "WINLIST" => "4",
245  ",WAIT" => "4",
246  "BITMAP" => "5",
247  "BUTTON" => "5",
248  "CHECK" => "5",
249  "COMBO" => "5",
250  "DLGTYPE" => "5",
251  "EDIT" => "5",
252  "PROGRESS" => "5",
253  "RADIO" => "5",
254  "STATUS" => "5",
255  "STYLE" => "5",
256  "TASKICON" => "5",
257  "TEXT" => "5");
258 
259 // Special extensions
260 
261 // Each category can specify a PHP function that returns an altered
262 // version of the keyword.
263 
264 
265 
266 $this->linkscripts = array(
267  "1" => "donothing",
268  "2" => "donothing",
269  "3" => "donothing",
270  "4" => "donothing",
271  "5" => "donothing");
272 }
273 
274 
275 function donothing($keywordin)
276 {
277  return $keywordin;
278 }
279 
280 }?>