ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_batch.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3if (!isset ($BEAUT_PATH)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_batch extends HFile{
6 function HFile_batch(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// Batch Files
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 "do" => "1",
46 "else" => "1",
47 "end" => "1",
48 "errorlevel" => "1",
49 "exist" => "1",
50 "exit" => "1",
51 "for" => "1",
52 "goto" => "1",
53 "if" => "1",
54 "not" => "1",
55 "pause" => "1",
56 "return" => "1",
57 "say" => "1",
58 "select" => "1",
59 "then" => "1",
60 "when" => "1",
61 "ansi" => "2",
62 "append" => "2",
63 "assign" => "2",
64 "attrib" => "2",
65 "autofail" => "2",
66 "backup" => "2",
67 "basedev" => "2",
68 "boot" => "2",
69 "break" => "2",
70 "buffers" => "2",
71 "cache" => "2",
72 "call" => "2",
73 "cd" => "2",
74 "chcp" => "2",
75 "chdir" => "2",
76 "chkdsk" => "2",
77 "choice" => "2",
78 "cls" => "2",
79 "cmd" => "2",
80 "codepage" => "2",
81 "command" => "2",
82 "comp" => "2",
83 "copy" => "2",
84 "country" => "2",
85 "date" => "2",
86 "ddinstal" => "2",
87 "debug" => "2",
88 "del" => "2",
89 "detach" => "2",
90 "device" => "2",
91 "devicehigh" => "2",
92 "devinfo" => "2",
93 "dir" => "2",
94 "diskcoache" => "2",
95 "diskcomp" => "2",
96 "diskcopy" => "2",
97 "doskey" => "2",
98 "dpath" => "2",
99 "dumpprocess" => "2",
100 "eautil" => "2",
101 "endlocal" => "2",
102 "erase" => "2",
103 "exit_vdm" => "2",
104 "extproc" => "2",
105 "fcbs" => "2",
106 "fdisk" => "2",
107 "fdiskpm" => "2",
108 "files" => "2",
109 "find" => "2",
110 "format" => "2",
111 "fsaccess" => "2",
112 "fsfilter" => "2",
113 "graftabl" => "2",
114 "iopl" => "2",
115 "join" => "2",
116 "keyb" => "2",
117 "keys" => "2",
118 "label" => "2",
119 "lastdrive" => "2",
120 "libpath" => "2",
121 "lh" => "2",
122 "loadhigh" => "2",
123 "makeini" => "2",
124 "maxwait" => "2",
125 "md" => "2",
126 "mem" => "2",
127 "memman" => "2",
128 "mkdir" => "2",
129 "mode" => "2",
130 "move" => "2",
131 "net" => "2",
132 "patch" => "2",
133 "path" => "2",
134 "pauseonerror" => "2",
135 "picview" => "2",
136 "pmrexx" => "2",
137 "print" => "2",
138 "printmonbufsize" => "2",
139 "priority" => "2",
140 "priority_disk_io" => "2",
141 "prompt" => "2",
142 "protectonly" => "2",
143 "protshell" => "2",
144 "pstat" => "2",
145 "rd" => "2",
146 "recover" => "2",
147 "reipl" => "2",
148 "ren" => "2",
149 "rename" => "2",
150 "replace" => "2",
151 "restore" => "2",
152 "rmdir" => "2",
153 "rmsize" => "2",
154 "run" => "2",
155 "set" => "2",
156 "setboot" => "2",
157 "setlocal" => "2",
158 "shell" => "2",
159 "shift" => "2",
160 "sort" => "2",
161 "spool" => "2",
162 "start" => "2",
163 "subst" => "2",
164 "suppresspopups" => "2",
165 "swappath" => "2",
166 "syslevel" => "2",
167 "syslog" => "2",
168 "threads" => "2",
169 "time" => "2",
170 "timeslice" => "2",
171 "trace" => "2",
172 "tracebuf" => "2",
173 "tracefmt" => "2",
174 "trapdump" => "2",
175 "tree" => "2",
176 "type" => "2",
177 "undelete" => "2",
178 "unpack" => "2",
179 "use" => "2",
180 "ver" => "2",
181 "verify" => "2",
182 "view" => "2",
183 "vmdisk" => "2",
184 "vol" => "2",
185 "xcopy" => "2",
186 "xcopy32" => "2",
187 "xdfcopy" => "2",
188 "@echo" => "3",
189 "echo" => "3",
190 "off" => "3",
191 "on" => "3",
192 ";" => "4",
193 "#" => "5",
194 "$" => "5",
195 "(" => "5",
196 ")" => "5",
197 "+" => "5",
198 "," => "5",
199 "." => "5",
200 "//" => "5",
201 "/" => "5",
202 ":" => "5",
203 "<" => "5",
204 "=" => "5",
205 ">" => "5",
206 "\\" => "5");
207
208// Special extensions
209
210// Each category can specify a PHP function that returns an altered
211// version of the keyword.
212
213
214
215$this->linkscripts = array(
216 "1" => "donothing",
217 "2" => "donothing",
218 "3" => "donothing",
219 "4" => "donothing",
220 "5" => "donothing");
221}
222
223
224function donothing($keywordin)
225{
226 return $keywordin;
227}
228
229}?>
$BEAUT_PATH
Definition: HFile_batch.php:2
donothing($keywordin)