ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_dosbatch.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_dosbatch extends HFile{
6  function HFile_dosbatch(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // DOS Batch
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");
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  "%" => "1",
47  ">" => "1",
48  "<" => "1",
49  "*" => "1",
50  "?" => "1",
51  "$e" => "1",
52  "[" => "1",
53  "call" => "1",
54  "do" => "1",
55  "echo" => "1",
56  "errorlevel" => "1",
57  "exit" => "1",
58  "exist" => "1",
59  "edit" => "1",
60  "edlin" => "1",
61  "for" => "1",
62  "goto" => "1",
63  "if" => "1",
64  "in" => "1",
65  "not" => "1",
66  "off" => "1",
67  "on" => "1",
68  "pause" => "1",
69  "prompt" => "1",
70  "path" => "1",
71  "qbasic" => "1",
72  "set" => "1",
73  "shift" => "1",
74  "attrib" => "2",
75  "append" => "2",
76  "backup" => "2",
77  "cd" => "2",
78  "choice" => "2",
79  "cls" => "2",
80  "copy" => "2",
81  "chdir" => "2",
82  "command" => "2",
83  "comp" => "2",
84  "chkdsk" => "2",
85  "del" => "2",
86  "dir" => "2",
87  "deltree" => "2",
88  "diskcopy" => "2",
89  "debug" => "2",
90  "diskcomp" => "2",
91  "doskey" => "2",
92  "expand" => "2",
93  "format" => "2",
94  "fc" => "2",
95  "fdisk" => "2",
96  "find" => "2",
97  "ftp" => "2",
98  "graphics" => "2",
99  "help" => "2",
100  "interlnk" => "2",
101  "intersvr" => "2",
102  "keyb" => "2",
103  "label" => "2",
104  "loadfix" => "2",
105  "mkdir" => "2",
106  "md" => "2",
107  "mode" => "2",
108  "msd" => "2",
109  "more" => "2",
110  "mem" => "2",
111  "move" => "2",
112  "msav" => "2",
113  "msbackup" => "2",
114  "nslfunc" => "2",
115  "print" => "2",
116  "rd" => "2",
117  "rmdir" => "2",
118  "replace" => "2",
119  "restore" => "2",
120  "sort" => "2",
121  "share" => "2",
122  "smartdrv" => "2",
123  "sys" => "2",
124  "scandisk" => "2",
125  "setver" => "2",
126  "subst" => "2",
127  "type" => "2",
128  "tree" => "2",
129  "undelete" => "2",
130  "unformat" => "2",
131  "ver" => "2",
132  "vol" => "2",
133  "vsafe" => "2",
134  "xcopy" => "2",
135  "date" => "3",
136  "time" => "3");
137 
138 // Special extensions
139 
140 // Each category can specify a PHP function that returns an altered
141 // version of the keyword.
142 
143 
144 
145 $this->linkscripts = array(
146  "1" => "donothing",
147  "2" => "donothing",
148  "3" => "donothing");
149 }
150 
151 
152 function donothing($keywordin)
153 {
154  return $keywordin;
155 }
156 
157 }?>