ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_nt_cmd.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_nt_cmd extends HFile{
6  function HFile_nt_cmd(){
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", "gray");
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  "Line" => "",
47  "Comment" => "",
48  "=" => "",
49  "REM" => "",
50  "Nocase" => "",
51  "File" => "",
52  "Extensions" => "",
53  "CMD" => "",
54  "BAT" => "",
55  "append" => "1",
56  "arp" => "1",
57  "assoc" => "1",
58  "at" => "1",
59  "attrib" => "1",
60  "backup" => "1",
61  "break" => "1",
62  "buffers" => "1",
63  "COPY" => "1",
64  "cacls" => "1",
65  "chcp" => "1",
66  "chdir" => "1",
67  "chkdsk" => "1",
68  "cls" => "1",
69  "cmd" => "1",
70  "codepage" => "1",
71  "color" => "1",
72  "comp" => "1",
73  "compact" => "1",
74  "convert" => "1",
75  "copy" => "1",
76  "country" => "1",
77  "DEL" => "1",
78  "date" => "1",
79  "debug" => "1",
80  "device" => "1",
81  "devicehigh" => "1",
82  "devinfo" => "1",
83  "dir" => "1",
84  "diskcomp" => "1",
85  "diskcopy" => "1",
86  "diskperf" => "1",
87  "dos" => "1",
88  "doskey" => "1",
89  "dosonly" => "1",
90  "driveparm" => "1",
91  "edit" => "1",
92  "edlin" => "1",
93  "erase" => "1",
94  "exe2bin" => "1",
95  "exit" => "1",
96  "expand" => "1",
97  "fastopen" => "1",
98  "fc" => "1",
99  "fcbs" => "1",
100  "files" => "1",
101  "find" => "1",
102  "findstr" => "1",
103  "finger" => "1",
104  "forcedos" => "1",
105  "format" => "1",
106  "ftp" => "1",
107  "ftype" => "1",
108  "graftabl" => "1",
109  "graphics" => "1",
110  "help" => "1",
111  "hostname" => "1",
112  "install" => "1",
113  "ipconfig" => "1",
114  "ipxroute" => "1",
115  "keyb" => "1",
116  "label" => "1",
117  "lastdrive" => "1",
118  "libpath" => "1",
119  "loadfix" => "1",
120  "loadhigh" => "1",
121  "lh" => "1",
122  "lpq" => "1",
123  "lpr" => "1",
124  "mem" => "1",
125  "mkdir" => "1",
126  "md" => "1",
127  "mode" => "1",
128  "more" => "1",
129  "move" => "1",
130  "nbtstat" => "1",
131  "netstat" => "1",
132  "net" => "1",
133  "nlsfunc" => "1",
134  "nslookup" => "1",
135  "prompt" => "1",
136  "path" => "1",
137  "pax" => "1",
138  "ping" => "1",
139  "pentnt" => "1",
140  "popd" => "1",
141  "portuas" => "1",
142  "print" => "1",
143  "protshell" => "1",
144  "pushd" => "1",
145  "qbasic" => "1",
146  "rcp" => "1",
147  "recover" => "1",
148  "rename" => "1",
149  "ren" => "1",
150  "replace" => "1",
151  "restore" => "1",
152  "rexec" => "1",
153  "rmdir" => "1",
154  "rd" => "1",
155  "route" => "1",
156  "rsh" => "1",
157  "set" => "1",
158  "setver" => "1",
159  "share" => "1",
160  "shell" => "1",
161  "sort" => "1",
162  "stacks" => "1",
163  "start" => "1",
164  "subst" => "1",
165  "TYPE" => "1",
166  "tftp" => "1",
167  "time" => "1",
168  "title" => "1",
169  "tracert" => "1",
170  "tree" => "1",
171  "ver" => "1",
172  "verify" => "1",
173  "vol" => "1",
174  "XCOPY" => "1",
175  "call" => "2",
176  "EXIST" => "2",
177  "echo" => "2",
178  "endlocal" => "2",
179  "for" => "2",
180  "GOTO" => "2",
181  "IF" => "2",
182  "NOT" => "2",
183  "pause" => "2",
184  "rem" => "2",
185  "setlocal" => "2",
186  "shift" => "2",
187  "awk" => "3",
188  "arj" => "3",
189  "cat" => "3",
190  "compress" => "3",
191  "CRCNT" => "3",
192  "datetime" => "3",
193  "DEFNCOPY" => "3",
194  "dequote" => "3",
195  "DIFF" => "3",
196  "DOAT" => "3",
197  "ERR" => "3",
198  "exitcode" => "3",
199  "filesize" => "3",
200  "FINDSTR" => "3",
201  "gawk" => "3",
202  "getdrves" => "3",
203  "getunc" => "3",
204  "GLOBAL" => "3",
205  "grep" => "3",
206  "head" => "3",
207  "IFSIZE" => "3",
208  "ls" => "3",
209  "mv" => "3",
210  "perl" => "3",
211  "PKUNZIP" => "3",
212  "PKZIP" => "3",
213  "REGFIX" => "3",
214  "sawk" => "3",
215  "sed" => "3",
216  "split" => "3",
217  "tail" => "3",
218  "TEE" => "3",
219  "tr" => "3",
220  "TRANS" => "3",
221  "uniq" => "3",
222  "unzip" => "3",
223  "unarj" => "3",
224  "VALIDATE" => "3",
225  "wc" => "3",
226  "XFRM" => "3",
227  "ZIP2EXE" => "3",
228  "zip" => "3");
229 
230 // Special extensions
231 
232 // Each category can specify a PHP function that returns an altered
233 // version of the keyword.
234 
235 
236 
237 $this->linkscripts = array(
238  "" => "donothing",
239  "1" => "donothing",
240  "2" => "donothing",
241  "3" => "donothing");
242 }
243 
244 
245 function donothing($keywordin)
246 {
247  return $keywordin;
248 }
249 
250 }?>