2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"gray",
"brown",
"blue");
21 $this->quotecolour =
"blue";
22 $this->blockcommentcolour =
"green";
23 $this->linecommentcolour =
"green";
27 $this->indent = array(
"{");
28 $this->unindent = array(
"}");
32 $this->stringchars = array(
"\"",
"'");
33 $this->delimiters = array(
"~",
"!",
"@",
"%",
"^",
"&",
"*",
"(",
")",
"-",
"+",
"=",
"|",
"\\",
"/",
"{",
"}",
"[",
"]",
":",
";",
"\"",
"'",
"<",
">",
" ",
",",
" ",
".",
"?");
38 $this->linecommenton = array(
"//");
39 $this->blockcommenton = array(
"/*");
40 $this->blockcommentoff = array(
"*/");
44 $this->keywords = array(
50 "DEVICE_REVISION" =>
"1",
51 "EDIT_DISPLAY" =>
"1",
53 "MANUFACTURER" =>
"1",
57 "WRITE_AS_ONE" =>
"1",
68 "CONSTANT_UNIT" =>
"2",
71 "DATA_ENTRY_ERROR" =>
"2",
72 "DATA_ENTRY_WARNING" =>
"2",
74 "DATE_AND_TIME" =>
"2",
78 "DISPLAY_ITEMS" =>
"2",
81 "EDIT_DISPLAYS" =>
"2",
93 "IGNORE_IN_HANDHELD" =>
"2",
103 "POST_EDIT_ACTIONS" =>
"2",
104 "POST_READ_ACTIONS" =>
"2",
105 "POST_WRITE_ACTIONS" =>
"2",
106 "PRE_EDIT_ACTIONS" =>
"2",
107 "PRE_READ_ACTIONS" =>
"2",
108 "PRE_WRITE_ACTIONS" =>
"2",
110 "PROCESS_ERROR" =>
"2",
111 "READ_TIMEOUT" =>
"2",
112 "REDEFINITIONS" =>
"2",
116 "RESPONSE_CODES" =>
"2",
120 "SELF_CORRECTING" =>
"2",
125 "TRANSACTION" =>
"2",
129 "UNCORRECTABLE" =>
"2",
133 "WRITE_ITMEOUT" =>
"2",
152 "ABORT_ON_ALL_COMM_STATUS" =>
"3",
153 "ABORT_ON_ALL_DEVICE_STATUS" =>
"3",
154 "ABORT_ON_ALL_RESPONSE_CODES" =>
"3",
155 "ABORT_ON_COMM_ERROR" =>
"3",
156 "ABORT_ON_COMM_STATUS" =>
"3",
157 "ABORT_ON_DEVICE_STATUS" =>
"3",
158 "ABORT_ON_NO_DEVICE" =>
"3",
159 "ABORT_ON_RESPONSE_CODE" =>
"3",
160 "ACKNOWLEDGE" =>
"3",
161 "acknowledge" =>
"3",
162 "add_abort_method" =>
"3",
163 "assign_double" =>
"3",
164 "assign_float" =>
"3",
172 "display_comm_status" =>
"3",
173 "display_device_status" =>
"3",
174 "display_response_status" =>
"3",
175 "display_xmtr_status" =>
"3",
176 "ext_send_command" =>
"3",
177 "ext_send_command_trans" =>
"3",
180 "float_value" =>
"3",
183 "GET_DEV_VAR_VALUE" =>
"3",
184 "GET_LOCAL_VAR_VALUE" =>
"3",
185 "get_dev_var_value" =>
"3",
186 "get_dictionary_string" =>
"3",
187 "get_local_var_value" =>
"3",
188 "get_more_status" =>
"3",
189 "get_status_code_string" =>
"3",
190 "IGNORE_ALL_COMM_STATUS" =>
"3",
191 "IGNORE_ALL_DEVICE_STATUS" =>
"3",
192 "IGNORE_ALL_RESPONSE_CODES" =>
"3",
193 "IGNORE_COMM_ERROR" =>
"3",
194 "IGNORE_COMM_STATUS" =>
"3",
195 "IGNORE_DEVICE_STATUS" =>
"3",
196 "IGNORE_NO_DEVICE" =>
"3",
197 "IGNORE_RESPONSE_CODE" =>
"3",
208 "PUT_MESSAGE" =>
"3",
209 "process_abort" =>
"3",
210 "put_message" =>
"3",
211 "RETRY_ON_ALL_COMM_STATUS" =>
"3",
212 "RETRY_ON_ALL_DEVICE_STATUS" =>
"3",
213 "RETRY_ON_ALL_RESPONSE_CODES" =>
"3",
214 "RETRY_ON_COMM_ERROR" =>
"3",
215 "RETRY_ON_COMM_STATUS" =>
"3",
216 "RETRY_ON_DEVICE_STATUS" =>
"3",
217 "RETRY_ON_NO_DEVICE" =>
"3",
218 "RETRY_ON_RESPONSE_CODE" =>
"3",
219 "remove_abort_method" =>
"3",
220 "remove_all_abort_methods" =>
"3",
221 "rspcode_string" =>
"3",
222 "SELECT_FROM_LIST" =>
"3",
223 "SET_NUMBER_OF_RETRIES" =>
"3",
224 "save_values" =>
"3",
225 "select_from_list" =>
"3",
227 "send_command" =>
"3",
228 "send_command_trans" =>
"3",
232 "XMTR_ABORT_ON_ALL_COMM_STATUS" =>
"3",
233 "XMTR_ABORT_ON_ALL_DEVICE_STATUS" =>
"3",
234 "XMTR_ABORT_ON_ALL_RESPONSE_CODES" =>
"3",
235 "XMTR_ABORT_ON_COMM_ERROR" =>
"3",
236 "XMTR_ABORT_ON_COMM_STATUS" =>
"3",
237 "XMTR_ABORT_ON_DATA" =>
"3",
238 "XMTR_ABORT_ON_DEVICE_STATUS" =>
"3",
239 "XMTR_ABORT_ON_NO_DEVICE" =>
"3",
240 "XMTR_ABORT_ON_RESPONSE_CODE" =>
"3",
241 "XMTR_IGNORE_ALL_COMM_STATUS" =>
"3",
242 "XMTR_IGNORE_ALL_DEVICE_STATUS" =>
"3",
243 "XMTR_IGNORE_ALL_RESPONSE_CODES" =>
"3",
244 "XMTR_IGNORE_COMM_ERROR" =>
"3",
245 "XMTR_IGNORE_COMM_STATUS" =>
"3",
246 "XMTR_IGNORE_DEVICE_STATUS" =>
"3",
247 "XMTR_IGNORE_NO_DEVICE" =>
"3",
248 "XMTR_IGNORE_RESPONSE_CODE" =>
"3",
249 "XMTR_RETRY_ON_ALL_COMM_STATUS" =>
"3",
250 "XMTR_RETRY_ON_ALL_DEVICE_STATUS" =>
"3",
251 "XMTR_RETRY_ON_ALL_RESPONSE_CODES" =>
"3",
252 "XMTR_RETRY_ON_COMM_ERROR" =>
"3",
253 "XMTR_RETRY_ON_COMM_STATUS" =>
"3",
254 "XMTR_RETRY_ON_DATA" =>
"3",
255 "XMTR_RETRY_ON_DEVICE_STATUS" =>
"3",
256 "XMTR_RETRY_ON_NO_DEVICE" =>
"3",
257 "XMTR_RETRY_ON_RESPONSE_CODE" =>
"3",
258 "ANALOG_OUTPUT" =>
"4",
260 "BIT_ENUMERATED" =>
"4",
263 "COMPUTATION" =>
"4",
267 "DISPLAY_FORMAT" =>
"4",
268 "DISPLAY_VALUE" =>
"4",
270 "EDIT_FORMAT" =>
"4",
279 "LOCAL_DISPLAY" =>
"4",
283 "MISC_WARNING" =>
"4",
286 "PACKED_ASCII" =>
"4",
292 "SCALING_FACTOR" =>
"4",
295 "UNSIGNED_INTEGER" =>
"4",
296 "USER_INTERFACE" =>
"4",
322 $this->linkscripts = array(