ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_patrol.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3if (!isset($BEAUT_PATH)) {
4 return;
5}
6require_once("$BEAUT_PATH/Beautifier/HFile.php");
7 class HFile_patrol extends HFile
8 {
9 public function HFile_patrol()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Patrol Scripting
15 /*************************************/
16 // Flags
17
18 $this->nocase = "0";
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 "else" => "1",
51 "elsif" => "1",
52 "exit" => "1",
53 "export" => "1",
54 "foreach" => "1",
55 "function" => "1",
56 "if" => "1",
57 "last" => "1",
58 "local" => "1",
59 "main" => "1",
60 "next" => "1",
61 "requires" => "1",
62 "return" => "1",
63 "switch" => "1",
64 "while" => "1",
65 "}" => "1",
66 "acos" => "2",
67 "annotate" => "2",
68 "annotate_get" => "2",
69 "asctime" => "2",
70 "asin" => "2",
71 "atan" => "2",
72 "blackout" => "2",
73 "cat" => "2",
74 "ceil" => "2",
75 "chan_exists" => "2",
76 "change_state" => "2",
77 "close" => "2",
78 "cond_signal" => "2",
79 "cond_wait" => "2",
80 "console_type" => "2",
81 "convert_date" => "2",
82 "cos" => "2",
83 "cosh" => "2",
84 "create" => "2",
85 "date" => "2",
86 "debugger" => "2",
87 "destroy" => "2",
88 "destroy_lock" => "2",
89 "difference" => "2",
90 "event_archive" => "2",
91 "event_catalog_get" => "2",
92 "event_check" => "2",
93 "event_query" => "2",
94 "event_range_manage" => "2",
95 "event_range_query" => "2",
96 "event_report" => "2",
97 "event_schedule" => "2",
98 "event_trigger" => "2",
99 "event_trigger2" => "2",
100 "execute" => "2",
101 "exists" => "2",
102 "exp" => "2",
103 "fabs" => "2",
104 "file" => "2",
105 "floor" => "2",
106 "fmod" => "2",
107 "fopen" => "2",
108 "fseek" => "2",
109 "ftell" => "2",
110 "full_discovery" => "2",
111 "get" => "2",
112 "get_chan_info" => "2",
113 "getenv" => "2",
114 "getpid" => "2",
115 "get_ranges" => "2",
116 "get_vars" => "2",
117 "grep" => "2",
118 "history" => "2",
119 "history_get_retention" => "2",
120 "index" => "2",
121 "int" => "2",
122 "internal" => "2",
123 "intersection" => "2",
124 "in_transition" => "2",
125 "isnumber" => "2",
126 "is_var" => "2",
127 "kill" => "2",
128 "length" => "2",
129 "lines" => "2",
130 "lock" => "2",
131 "log" => "2",
132 "loge" => "2",
133 "log10" => "2",
134 "ntharg" => "2",
135 "nthargf" => "2",
136 "nthline" => "2",
137 "nthlinef" => "2",
138 "num_consoles" => "2",
139 "pconfig" => "2",
140 "popen" => "2",
141 "pow" => "2",
142 "print" => "2",
143 "printf" => "2",
144 "proc_exists" => "2",
145 "process" => "2",
146 "Pslexecute" => "2",
147 "random" => "2",
148 "read" => "2",
149 "readln" => "2",
150 "refresh_parameters" => "2",
151 "remote_close" => "2",
152 "remote_event_query" => "2",
153 "remote_event_trigger" => "2",
154 "remote_file_send" => "2",
155 "remote_open" => "2",
156 "response" => "2",
157 "response_get_value" => "2",
158 "rindex" => "2",
159 "set" => "2",
160 "share" => "2",
161 "sin" => "2",
162 "sinh" => "2",
163 "sleep" => "2",
164 "snmp_agent_config" => "2",
165 "snmp_agent_stop" => "2",
166 "snmp_close" => "2",
167 "snmp_config" => "2",
168 "_snmp_debug" => "2",
169 "snmp_get" => "2",
170 "snmp_get_next" => "2",
171 "snmp_h_get" => "2",
172 "snmp__h_get_next" => "2",
173 "snmp_h_set" => "2",
174 "snmp_open" => "2",
175 "snmp_set" => "2",
176 "snmp_trap_ignore" => "2",
177 "snmp_trap_listen" => "2",
178 "snmp_trap_raise_std_trap" => "2",
179 "snmp_trap_receive" => "2",
180 "snmp_trap_register_im" => "2",
181 "snmp_trap_send" => "2",
182 "snmp_walk" => "2",
183 "sort" => "2",
184 "sprintf" => "2",
185 "sqrt" => "2",
186 "srandom" => "2",
187 "subset" => "2",
188 "substr" => "2",
189 "system" => "2",
190 "tail" => "2",
191 "tanh" => "2",
192 "time" => "2",
193 "tmpnam" => "2",
194 "tolower" => "2",
195 "toupper" => "2",
196 "trim" => "2",
197 "union" => "2",
198 "unique" => "2",
199 "unlock" => "2",
200 "unset" => "2",
201 "va_arg" => "2",
202 "va_start" => "2",
203 "write" => "2");
204
205 // Special extensions
206
207 // Each category can specify a PHP function that returns an altered
208 // version of the keyword.
209
210
211
212 $this->linkscripts = array(
213 "1" => "donothing",
214 "2" => "donothing");
215 }
216
217
218 public function donothing($keywordin)
219 {
220 return $keywordin;
221 }
222 }
$BEAUT_PATH
Definition: HFile_patrol.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)