ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_kixtart.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_kixtart extends HFile
8  {
9  public function HFile_kixtart()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Kixtart 3.62
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");
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(";");
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  "AT" => "1",
52  "BEEP" => "1",
53  "BIG" => "1",
54  "BOX" => "1",
55  "BREAK" => "1",
56  "CALL" => "1",
57  "CASE" => "1",
58  "CD" => "1",
59  "CLS" => "1",
60  "COLOR" => "1",
61  "COOKIE1" => "1",
62  "COPY" => "1",
63  "DEL" => "1",
64  "DIM" => "1",
65  "DISPLAY" => "1",
66  "DO" => "1",
67  "ELSE" => "1",
68  "ENDIF" => "1",
69  "ENDSELECT" => "1",
70  "EXIT" => "1",
71  "FLUSHKB" => "1",
72  "GET" => "1",
73  "GETS" => "1",
74  "GLOBAL" => "1",
75  "GO" => "1",
76  "GOSUB" => "1",
77  "GOTO" => "1",
78  "IF" => "1",
79  "LOOP" => "1",
80  "MD" => "1",
81  "OFF" => "1",
82  "ON" => "1",
83  "PASSWORD" => "1",
84  "PLAY" => "1",
85  "QUIT" => "1",
86  "RETURN" => "1",
87  "RD" => "1",
88  "RUN" => "1",
89  "SELECT" => "1",
90  "SET" => "1",
91  "SETL" => "1",
92  "SETM" => "1",
93  "SETTIME" => "1",
94  "SHELL" => "1",
95  "SLEEP" => "1",
96  "SMALL" => "1",
97  "UNTIL" => "1",
98  "USE" => "1",
99  "WHILE" => "1",
100  "ADDKEY" => "2",
101  "ADDPRINTERCONNECTION" => "2",
102  "ADDPROGRAMGROUP" => "2",
103  "ADDPROGRAMITEM" => "2",
104  "ASC" => "2",
105  "BACKUPEVENTLOG" => "2",
106  "CHR" => "2",
107  "CLEAREVENTLOG" => "2",
108  "CLOSE" => "2",
109  "COMPAREFILETIMES" => "2",
110  "DECTOHEX" => "2",
111  "DELKEY" => "2",
112  "DELPRINTERCONNECTION" => "2",
113  "DELPROGRAMGROUP" => "2",
114  "DELPROGRAMITEM" => "2",
115  "DELTREE" => "2",
116  "DELVALUE" => "2",
117  "DIR" => "2",
118  "ENUMGROUP" => "2",
119  "ENUMKEY" => "2",
120  "ENUMLOCALGROUP" => "2",
121  "ENUMVALUE" => "2",
122  "EXECUTE" => "2",
123  "EXIST" => "2",
124  "EXISTKEY" => "2",
125  "EXPANDENVIRONMENTVARS" => "2",
126  "GETDISKSPACE" => "2",
127  "GETFILEATTR" => "2",
128  "GETFILESIZE" => "2",
129  "GETFILETIME" => "2",
130  "GETFILEVERSION" => "2",
131  "INGROUP" => "2",
132  "INSTR" => "2",
133  "LCASE" => "2",
134  "LEN" => "2",
135  "LOADHIVE" => "2",
136  "LOADKEY" => "2",
137  "LOGEVENT" => "2",
138  "LOGOFF" => "2",
139  "LTRIM" => "2",
140  "MESSAGEBOX" => "2",
141  "OLECALLFUNC" => "2",
142  "OLECALLPROC" => "2",
143  "OLECREATEOBJECT" => "2",
144  "OLEENUMOBJECT" => "2",
145  "OLEGETOBJECT" => "2",
146  "OLEGETPROPERTY" => "2",
147  "OLEGETSUBOBJECT" => "2",
148  "OLEPUTPROPERTY" => "2",
149  "OLERELEASEOBJECT" => "2",
150  "OPEN" => "2",
151  "READLINE" => "2",
152  "READPROFILESTRING" => "2",
153  "READTYPE" => "2",
154  "READVALUE" => "2",
155  "REDIRECTOUTPUT" => "2",
156  "RND" => "2",
157  "RTRIM" => "2",
158  "SAVEKEY" => "2",
159  "SENDKEYS" => "2",
160  "SENDMESSAGE" => "2",
161  "SETACSII" => "2",
162  "SETCONSOLE" => "2",
163  "SETDEFAULTPRINTER" => "2",
164  "SETFILEATTR" => "2",
165  "SETFOCUS" => "2",
166  "SETWALLPAPER" => "2",
167  "SHOWPROGRAMGROUP" => "2",
168  "SHUTDOWN" => "2",
169  "SRND" => "2",
170  "SUBSTR" => "2",
171  "UCASE" => "2",
172  "UNLOADHIVE" => "2",
173  "VAL" => "2",
174  "WRITELINE" => "2",
175  "WRITEPROFILESTRING" => "2",
176  "WRITEVALUE" => "2");
177 
178  // Special extensions
179 
180  // Each category can specify a PHP function that returns an altered
181  // version of the keyword.
182 
183 
184 
185  $this->linkscripts = array(
186  "1" => "donothing",
187  "2" => "donothing");
188  }
189 
190 
191  public function donothing($keywordin)
192  {
193  return $keywordin;
194  }
195  }
Create styles array
The data for the language used.
$BEAUT_PATH
Definition: HFile.php:21
donothing($keywordin)