ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_4dos4nt Class Reference
+ Inheritance diagram for HFile_4dos4nt:
+ Collaboration diagram for HFile_4dos4nt:

Public Member Functions

 HFile_4dos4nt ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 8 of file HFile_4dos4nt.php.

Member Function Documentation

◆ donothing()

HFile_4dos4nt::donothing (   $keywordin)

Definition at line 429 of file HFile_4dos4nt.php.

430  {
431  return $keywordin;
432  }

◆ HFile_4dos4nt()

HFile_4dos4nt::HFile_4dos4nt ( )

Definition at line 10 of file HFile_4dos4nt.php.

References array.

11  {
12  $this->HFile();
13  /*************************************/
14  // Beautifier Highlighting Configuration File
15  // 4DOS/4NT Batch
16  /*************************************/
17  // Flags
18 
19  $this->nocase = "1";
20  $this->notrim = "0";
21  $this->perl = "0";
22 
23  // Colours
24 
25  $this->colours = array("blue", "purple", "gray", "brown", "blue", "brown", "purple", "gray");
26  $this->quotecolour = "blue";
27  $this->blockcommentcolour = "green";
28  $this->linecommentcolour = "green";
29 
30  // Indent Strings
31 
32  $this->indent = array( "SWITCH", "THEN");
33  $this->unindent = array( "ENDIFF", "ENDSWITCH");
34 
35  // String characters and delimiters
36 
37  $this->stringchars = array("\"");
38  $this->delimiters = array("%", "!", "$", "^", "*", "(", ")", "+", "=", "|", "{", "}", "[", "]", "\"", "'", " ", " ", ",");
39  $this->escchar = "";
40 
41  // Comment settings
42 
43  $this->linecommenton = array("REM");
44  $this->blockcommenton = array("");
45  $this->blockcommentoff = array("");
46 
47  // Keywords (keyword mapping to colour number)
48 
49  $this->keywords = array(
50  "==" => "1",
51  "=" => "1",
52  "|" => "1",
53  "," => "1",
54  "." => "1",
55  ">" => "1",
56  ">>" => "1",
57  ">&>" => "1",
58  "<" => "1",
59  "<<" => "1",
60  "<&<" => "1",
61  "?" => "2",
62  "ACTIVATE" => "2",
63  "ALIAS" => "2",
64  "ASSOC" => "2",
65  "AT" => "2",
66  "ATTRIB" => "2",
67  "BEEP" => "2",
68  "BREAK" => "2",
69  "CALL" => "2",
70  "CANCEL" => "2",
71  "CASE" => "2",
72  "CD" => "2",
73  "CDD" => "2",
74  "CHCP" => "2",
75  "CHDIR" => "2",
76  "CLS" => "2",
77  "COLOR" => "2",
78  "COPY" => "2",
79  "CTTY" => "2",
80  "DATE" => "2",
81  "DDEEXEC" => "2",
82  "DEFAULT" => "2",
83  "DEL" => "2",
84  "DELAY" => "2",
85  "DESCRIBE" => "2",
86  "DETACH" => "2",
87  "DIR" => "2",
88  "DIRHISTORY" => "2",
89  "DIRS" => "2",
90  "DO" => "2",
91  "DPATH" => "2",
92  "DRAWBOX" => "2",
93  "DRAWHLINE" => "2",
94  "DRAWVLINE" => "2",
95  "ECHO" => "2",
96  "ECHO." => "2",
97  "ECHOERR" => "2",
98  "ECHOS" => "2",
99  "ECHOSERR" => "2",
100  "ENDDO" => "2",
101  "ENDIFF" => "2",
102  "ENDLOCAL" => "2",
103  "ENDSWITCH" => "2",
104  "ENDTEXT" => "2",
105  "ERASE" => "2",
106  "ESET" => "2",
107  "EXCEPT" => "2",
108  "EXIT" => "2",
109  "FFIND" => "2",
110  "FIND" => "2",
111  "FOR" => "2",
112  "FREE" => "2",
113  "FTYPE" => "2",
114  "GLOBAL" => "2",
115  "GOSUB" => "2",
116  "GREP" => "2",
117  "GOTO" => "2",
118  "HELP" => "2",
119  "HISTORY" => "2",
120  "IF" => "2",
121  "IFF" => "2",
122  "INKEY" => "2",
123  "INPUT" => "2",
124  "KEYBD" => "2",
125  "KEYS" => "2",
126  "KEYSTACK" => "2",
127  "LH" => "2",
128  "LIST" => "2",
129  "LOADBTM" => "2",
130  "LOADHIGH" => "2",
131  "LOCK" => "2",
132  "LOG" => "2",
133  "MD" => "2",
134  "MEMORY" => "2",
135  "MKDIR" => "2",
136  "MOVE" => "2",
137  "MSGBOX" => "2",
138  "OPTION" => "2",
139  "PATH" => "2",
140  "PAUSE" => "2",
141  "POPD" => "2",
142  "PROMPT" => "2",
143  "PUSHD" => "2",
144  "QUERYBOX" => "2",
145  "QUIT" => "2",
146  "RD" => "2",
147  "REBOOT" => "2",
148  "REN" => "2",
149  "RENAME" => "2",
150  "RETURN" => "2",
151  "RMDIR" => "2",
152  "SCREEN" => "2",
153  "SCRPUT" => "2",
154  "SELECT" => "2",
155  "SET" => "2",
156  "SETDOS" => "2",
157  "SETLOCAL" => "2",
158  "SHIFT" => "2",
159  "SHRALIAS" => "2",
160  "START" => "2",
161  "SWAPPING" => "2",
162  "SWITCH" => "2",
163  "TEE" => "2",
164  "TEXT" => "2",
165  "TIME" => "2",
166  "TIMER" => "2",
167  "TITLE" => "2",
168  "TOUCH" => "2",
169  "TREE" => "2",
170  "TRUENAME" => "2",
171  "TYPE" => "2",
172  "UNALIAS" => "2",
173  "UNLOCK" => "2",
174  "UNSET" => "2",
175  "VER" => "2",
176  "VERIFY" => "2",
177  "VOL" => "2",
178  "VSCRPUT" => "2",
179  "WINDOW" => "2",
180  "Y" => "2",
181  ".AND." => "3",
182  ".OR." => "3",
183  ".XOR." => "3",
184  "BY" => "3",
185  "DEFINED" => "3",
186  "DIREXIST" => "3",
187  "ELSE" => "3",
188  "ELSEIFF" => "3",
189  "EQ" => "3",
190  "EQL" => "3",
191  "EQU" => "3",
192  "ERROR" => "3",
193  "ERRORLEVEL" => "3",
194  "ERRORMSG" => "3",
195  "EXIST" => "3",
196  "FOREVER" => "3",
197  "GE" => "3",
198  "GEQ" => "3",
199  "GT" => "3",
200  "GTR" => "3",
201  "IN" => "3",
202  "ISALIAS" => "3",
203  "ISDIR" => "3",
204  "ISINTERNAL" => "3",
205  "ISLABEL" => "3",
206  "ISWINDOW" => "3",
207  "ITERATE" => "3",
208  "LE" => "3",
209  "LEAVE" => "3",
210  "LEQ" => "3",
211  "LSS" => "3",
212  "LT" => "3",
213  "NE" => "3",
214  "NEQ" => "3",
215  "NOT" => "3",
216  "ON" => "3",
217  "OFF" => "3",
218  "THEN" => "3",
219  "UNTIL" => "3",
220  "WHILE" => "3",
221  "_4VER" => "4",
222  "_ALIAS" => "4",
223  "_ANSI" => "4",
224  "_APMAC" => "4",
225  "_APMBATT" => "4",
226  "_APMLIFE" => "4",
227  "_BATCH" => "4",
228  "_BATCHLINE" => "4",
229  "_BATCHNAME" => "4",
230  "_BG" => "4",
231  "_BOOT" => "4",
232  "_CI" => "4",
233  "_CMDPROC" => "4",
234  "_CO" => "4",
235  "_CODEPAGE" => "4",
236  "_COLUMN" => "4",
237  "_COLUMNS" => "4",
238  "_COUNTRY" => "4",
239  "_CPU" => "4",
240  "_CWD" => "4",
241  "_CWDS" => "4",
242  "_CWP" => "4",
243  "_CWPS" => "4",
244  "_DATE" => "4",
245  "_DAY" => "4",
246  "_DISK" => "4",
247  "_DNAME" => "4",
248  "_DOS" => "4",
249  "_DOSVER" => "4",
250  "_DOW" => "4",
251  "_DOWI" => "4",
252  "_DOY" => "4",
253  "_DPMI" => "4",
254  "_DV" => "4",
255  "_ENV" => "4",
256  "_FG" => "4",
257  "_GDIFREE" => "4",
258  "_HLOGFILE" => "4",
259  "_HOUR" => "4",
260  "_KBHIT" => "4",
261  "_KSTACK" => "4",
262  "_LASTDISK" => "4",
263  "_LOGFILE" => "4",
264  "_MINUTE" => "4",
265  "_MONITOR" => "4",
266  "_MONTH" => "4",
267  "_MOUSE" => "4",
268  "_NDP" => "4",
269  "_PID" => "4",
270  "_PIPE" => "4",
271  "_PPID" => "4",
272  "_PTYPE" => "4",
273  "_ROW" => "4",
274  "_ROWS" => "4",
275  "_SECOND" => "4",
276  "_SELECTED" => "4",
277  "_SHELL" => "4",
278  "_SID" => "4",
279  "_SWAPPING" => "4",
280  "_SYSERR" => "4",
281  "_SYSFREE" => "4",
282  "_TIME" => "4",
283  "_TRANSIENT" => "4",
284  "_USERFREE" => "4",
285  "_VIDEO" => "4",
286  "_WIN" => "4",
287  "_WINDIR" => "4",
288  "_WINSYSDIR" => "4",
289  "_WINTITLE" => "4",
290  "_WINVER" => "4",
291  "_XPIXELS" => "4",
292  "_YEAR" => "4",
293  "_YPIXELS" => "4",
294  "_?" => "4",
295  "@ALIAS" => "5",
296  "@ALTNAME" => "5",
297  "@ASCII" => "5",
298  "@ATTRIB" => "5",
299  "@CDROM" => "5",
300  "@CHAR" => "5",
301  "@CLIP" => "5",
302  "@COMMA" => "5",
303  "@CONVERT" => "5",
304  "@DATE" => "5",
305  "@DAY" => "5",
306  "@DEC" => "5",
307  "@DESCRIPT" => "5",
308  "@DEVICE" => "5",
309  "@DISKFREE" => "5",
310  "@DISKTOTAL" => "5",
311  "@DISKUSED" => "5",
312  "@DOSMEM" => "5",
313  "@DOW" => "5",
314  "@DOWI" => "5",
315  "@DOY" => "5",
316  "@EAREAD" => "5",
317  "@EAWRITE" => "5",
318  "@EMS" => "5",
319  "@EVAL" => "5",
320  "@EXEC" => "5",
321  "@EXECSTR" => "5",
322  "@EXETYPE" => "5",
323  "@EXPAND" => "5",
324  "@EXT" => "5",
325  "@EXTENDED" => "5",
326  "@FILEAGE" => "5",
327  "@FILECLOSE" => "5",
328  "@FILEDATE" => "5",
329  "@FILENAME" => "5",
330  "@FILEOPEN" => "5",
331  "@FILEREAD" => "5",
332  "@FILES" => "5",
333  "@FILESEEK" => "5",
334  "@FILESEEKL" => "5",
335  "@FILESIZE" => "5",
336  "@FILETIME" => "5",
337  "@FILEWRITE" => "5",
338  "@FILEWRITEB" => "5",
339  "@FINDCLOSE" => "5",
340  "@FINDFIRST" => "5",
341  "@FINDNEXT" => "5",
342  "@FORMAT" => "5",
343  "@FSTYPE" => "5",
344  "@FULL" => "5",
345  "@GETDIR" => "5",
346  "@GETFILE" => "5",
347  "@IF" => "5",
348  "@INC" => "5",
349  "@INDEX" => "5",
350  "@INIREAD" => "5",
351  "@INIWRITE" => "5",
352  "@INSERT" => "5",
353  "@INSTR" => "5",
354  "@INT" => "5",
355  "@LABEL" => "5",
356  "@LEFT" => "5",
357  "@LEN" => "5",
358  "@LFN" => "5",
359  "@LINE" => "5",
360  "@LINES" => "5",
361  "@LOWER" => "5",
362  "@LPT" => "5",
363  "@MAKEAGE" => "5",
364  "@MAKEDATE" => "5",
365  "@MAKETIME" => "5",
366  "@MASTER" => "5",
367  "@MONTH" => "5",
368  "@NAME" => "5",
369  "@NUMERIC" => "5",
370  "@PATH" => "5",
371  "@RANDOM" => "5",
372  "@READSCR" => "5",
373  "@READY" => "5",
374  "@REMOTE" => "5",
375  "@REMOVABLE" => "5",
376  "@REPEAT" => "5",
377  "@REPLACE" => "5",
378  "@REXX" => "5",
379  "@RIGHT" => "5",
380  "@SEARCH" => "5",
381  "@SELECT" => "5",
382  "@SFN" => "5",
383  "@STRIP" => "5",
384  "@SUBSTR" => "5",
385  "@TIME" => "5",
386  "@TIMER" => "5",
387  "@TRIM" => "5",
388  "@TRUENAME" => "5",
389  "@UNIQUE" => "5",
390  "@UPPER" => "5",
391  "@WILD" => "5",
392  "@WORD" => "5",
393  "@WORDS" => "5",
394  "@XMS" => "5",
395  "@YEAR" => "5",
396  "**" => "8",
397  ":" => "6",
398  "A:" => "7",
399  "B:" => "7",
400  "C:" => "7",
401  "D:" => "7",
402  "E:" => "7",
403  "F:" => "7",
404  "G:" => "7",
405  "H:" => "7",
406  "O:" => "7",
407  "-" => "8",
408  "/" => "8");
409 
410  // Special extensions
411 
412  // Each category can specify a PHP function that returns an altered
413  // version of the keyword.
414 
415 
416 
417  $this->linkscripts = array(
418  "1" => "donothing",
419  "2" => "donothing",
420  "3" => "donothing",
421  "4" => "donothing",
422  "5" => "donothing",
423  "8" => "donothing",
424  "6" => "donothing",
425  "7" => "donothing");
426  }
Create styles array
The data for the language used.
Definition: HFile.php:21

The documentation for this class was generated from the following file: