ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_dosbatch extends HFile
8  {
9  public function HFile_dosbatch()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // DOS Batch
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array();
32  $this->unindent = array();
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array("\"");
37  $this->delimiters = array("~", "!", "^", "&", "(", ")", "+", "=", "|", "@", "{", "}", "[", "]", ";", "\"", "'", "<", ">", " ", ",", ".", "/", " ", " ", " ", " ");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("rem");
43  $this->blockcommenton = array("");
44  $this->blockcommentoff = array("");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "@" => "1",
50  "%" => "1",
51  ">" => "1",
52  "<" => "1",
53  "*" => "1",
54  "?" => "1",
55  "$e" => "1",
56  "[" => "1",
57  "call" => "1",
58  "do" => "1",
59  "echo" => "1",
60  "errorlevel" => "1",
61  "exit" => "1",
62  "exist" => "1",
63  "edit" => "1",
64  "edlin" => "1",
65  "for" => "1",
66  "goto" => "1",
67  "if" => "1",
68  "in" => "1",
69  "not" => "1",
70  "off" => "1",
71  "on" => "1",
72  "pause" => "1",
73  "prompt" => "1",
74  "path" => "1",
75  "qbasic" => "1",
76  "set" => "1",
77  "shift" => "1",
78  "attrib" => "2",
79  "append" => "2",
80  "backup" => "2",
81  "cd" => "2",
82  "choice" => "2",
83  "cls" => "2",
84  "copy" => "2",
85  "chdir" => "2",
86  "command" => "2",
87  "comp" => "2",
88  "chkdsk" => "2",
89  "del" => "2",
90  "dir" => "2",
91  "deltree" => "2",
92  "diskcopy" => "2",
93  "debug" => "2",
94  "diskcomp" => "2",
95  "doskey" => "2",
96  "expand" => "2",
97  "format" => "2",
98  "fc" => "2",
99  "fdisk" => "2",
100  "find" => "2",
101  "ftp" => "2",
102  "graphics" => "2",
103  "help" => "2",
104  "interlnk" => "2",
105  "intersvr" => "2",
106  "keyb" => "2",
107  "label" => "2",
108  "loadfix" => "2",
109  "mkdir" => "2",
110  "md" => "2",
111  "mode" => "2",
112  "msd" => "2",
113  "more" => "2",
114  "mem" => "2",
115  "move" => "2",
116  "msav" => "2",
117  "msbackup" => "2",
118  "nslfunc" => "2",
119  "print" => "2",
120  "rd" => "2",
121  "rmdir" => "2",
122  "replace" => "2",
123  "restore" => "2",
124  "sort" => "2",
125  "share" => "2",
126  "smartdrv" => "2",
127  "sys" => "2",
128  "scandisk" => "2",
129  "setver" => "2",
130  "subst" => "2",
131  "type" => "2",
132  "tree" => "2",
133  "undelete" => "2",
134  "unformat" => "2",
135  "ver" => "2",
136  "vol" => "2",
137  "vsafe" => "2",
138  "xcopy" => "2",
139  "date" => "3",
140  "time" => "3");
141 
142  // Special extensions
143 
144  // Each category can specify a PHP function that returns an altered
145  // version of the keyword.
146 
147 
148 
149  $this->linkscripts = array(
150  "1" => "donothing",
151  "2" => "donothing",
152  "3" => "donothing");
153  }
154 
155 
156  public function donothing($keywordin)
157  {
158  return $keywordin;
159  }
160  }
donothing($keywordin)
$BEAUT_PATH
Create styles array
The data for the language used.
Definition: HFile.php:21