2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"blue",
"purple",
"brown",
"brown",
"gray",
"gray",
"",
"purple",
"");
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(
45 "append_catalog_path" =>
"1",
46 "append_graphics_path" =>
"1",
47 "append_load_path" =>
"1",
49 "buffer_create" =>
"1",
60 "insert_buffer" =>
"1",
63 "package_file" =>
"1",
64 "package_name" =>
"1",
68 "channel_set_callback" =>
"2",
69 "content_model" =>
"4",
70 "context_paths" =>
"2",
71 "context_string" =>
"2",
73 "in_context_list" =>
"2",
75 "open_connect" =>
"2",
89 "doc_set_path" =>
"3",
93 "file_selector" =>
"3",
94 "list_response" =>
"3",
98 "save_some_docs" =>
"3",
99 "base_tag_name" =>
"4",
100 "char_entity_names" =>
"4",
101 "division_tag" =>
"4",
108 "doc_type_dir" =>
"4",
109 "dtd_decl_path" =>
"4",
112 "file_entity_tag" =>
"4",
113 "fosi_public_id" =>
"4",
114 "graphic_entity_attr_name" =>
"4",
115 "graphic_entity_tag" =>
"4",
116 "graphic_tag_name" =>
"4",
117 "graphic_file_attr_name" =>
"4",
118 "marked_section_tag" =>
"4",
119 "notation_tag" =>
"4",
120 "path_public_ids" =>
"4",
121 "procins_tag" =>
"4",
123 "public_id_path" =>
"4",
124 "sgml_feature" =>
"4",
125 "tag_attr_choices" =>
"4",
126 "tag_attr_default" =>
"4",
127 "tag_attr_required" =>
"4",
128 "tag_attr_type" =>
"4",
129 "tag_attr_value" =>
"4",
131 "tag_display" =>
"5",
133 "tag_has_attr" =>
"4",
135 "text_entity_tag" =>
"4",
136 "user_tag_names" =>
"4",
137 "addrequiredtags" =>
"5",
143 "bitmapdisplay" =>
"5",
148 "change_entity" =>
"5",
151 "check_completeness" =>
"5",
157 "copy_keymap" =>
"5",
159 "create_file_entity" =>
"5",
160 "declare_entity" =>
"5",
161 "declare_graphic_entity" =>
"5",
162 "declare_ms_parameter" =>
"5",
163 "declare_notation" =>
"5",
164 "declare_text_entity" =>
"5",
165 "define_keymap" =>
"5",
167 "delete_buffer" =>
"5",
168 "delete_character" =>
"5",
169 "delete_entity" =>
"5",
170 "delete_mark" =>
"5",
175 "dirfontpercent" =>
"5",
181 "doctypespath" =>
"5",
183 "editfontpercent" =>
"5",
185 "expressions" =>
"5",
186 "fileentityfontcolor" =>
"5",
187 "fileentitymarkers" =>
"5",
189 "fontpercent" =>
"5",
192 "fosiwarnings" =>
"5",
196 "gentextfontcolor" =>
"5",
197 "gentexttagdisplay" =>
"5",
198 "graphicdisplay" =>
"5",
200 "helpfontpercent" =>
"5",
206 "insert_accent" =>
"5",
207 "insert_entity" =>
"5",
208 "insert_graphic" =>
"5",
209 "insert_graphic_entity" =>
"5",
210 "insert_marked_section" =>
"5",
212 "insert_string" =>
"5",
213 "insert_table" =>
"5",
215 "invoke_processor" =>
"5",
220 "load_buffers" =>
"5",
221 "loadmessages" =>
"5",
228 "menu_change" =>
"5",
230 "menu_delete" =>
"5",
237 "modify_entity" =>
"5",
238 "modify_file_entities" =>
"5",
239 "modify_graphic_entities" =>
"5",
240 "modify_marked_section" =>
"5",
241 "modify_ms_parameters" =>
"5",
242 "modify_notation" =>
"5",
244 "modify_text_entities" =>
"5",
253 "pendingdelete" =>
"5",
259 "remove_file" =>
"5",
260 "rename_entity" =>
"5",
261 "rename_notation" =>
"5",
265 "requireattrs" =>
"5",
269 "save_buffers" =>
"5",
271 "selectionsvc" =>
"5",
274 "sgmlselection" =>
"5",
278 "showentities" =>
"5",
279 "shownewlines" =>
"5",
284 "tabledisplay" =>
"5",
286 "tagfontpercent" =>
"5",
287 "tagidisplay" =>
"5",
290 "textentityfontcolor" =>
"5",
294 "undeclare_entity" =>
"5",
295 "undeclare_notation" =>
"5",
296 "undefine_keymap" =>
"5",
297 "undefine_tag" =>
"5",
313 "current_tag_attr_value" =>
"6",
314 "current_tag_name" =>
"6",
316 "edit_new_window" =>
"6",
319 "entity_exists" =>
"6",
320 "entity_first" =>
"6",
321 "entity_last" =>
"6",
322 "entity_name" =>
"6",
323 "forward_char" =>
"6",
328 "mouse_in_selection" =>
"6",
329 "oid_delete_attr" =>
"8",
330 "oid_modify_attr" =>
"8",
331 "oid_top_pos" =>
"8",
332 "scroll_to_oid" =>
"8",
334 "selection_balanced" =>
"6",
335 "selection_end" =>
"8",
336 "selection_start" =>
"8",
337 "absolute_file_name" =>
"7",
344 "exit_editor" =>
"7",
345 "expand_file_name" =>
"7",
346 "file_directory" =>
"7",
350 "file_system" =>
"7",
358 "keymap_exists" =>
"7",
360 "menu_checked" =>
"7",
362 "menu_exists" =>
"7",
363 "menu_item_count" =>
"7",
381 "match_length" =>
"8",
382 "match_result" =>
"8",
383 "match_start" =>
"8",
385 "oid_attr_list" =>
"8",
386 "oid_attr_required" =>
"8",
387 "oid_attr_type" =>
"8",
388 "oid_backward" =>
"8",
390 "oid_caret_offset" =>
"8",
391 "oid_caret_pos" =>
"8",
392 "oid_check_attr" =>
"8",
394 "oid_children" =>
"8",
395 "oid_content" =>
"8",
396 "oid_current_tag" =>
"8",
397 "oid_detailed" =>
"8",
399 "oid_emptyoid_entity_first" =>
"8",
400 "oid_entity_last" =>
"8",
402 "oid_forward" =>
"8",
403 "oid_has_attr" =>
"8",
407 "oid_mouse_pos" =>
"8",
413 "oid_protected" =>
"8",
414 "oid_same_doc" =>
"8",
426 "context_error" =>
"9",
431 "editbeforehook" =>
"9",
432 "editfilehook" =>
"9",
433 "elapsed_time" =>
"9",
434 "entity_path" =>
"9",
435 "exclude_tag" =>
"9",
437 "modify_graphic" =>
"9",
438 "newfilehook" =>
"9",
439 "print_panel" =>
"9",
440 "tbl_caret_col" =>
"9",
441 "tbl_caret_row" =>
"9",
442 "tbl_col_count" =>
"9",
445 "tbl_row_count" =>
"9",
447 "timer_add_callback" =>
"9",
448 "timer_remove_callback" =>
"9",
450 "window_class" =>
"9",
451 "window_close" =>
"9",
452 "window_create" =>
"9",
453 "window_destroy" =>
"9",
457 "window_list" =>
"9",
458 "window_lower" =>
"9",
459 "window_mask" =>
"9",
460 "window_name" =>
"9",
461 "window_open" =>
"9",
462 "window_raise" =>
"9",
464 "window_show" =>
"9",
465 "window_state" =>
"9",
466 "window_sync" =>
"9",
473 "$adept_path" =>
"10",
474 "$currentcolumn" =>
"10",
475 "$currentline" =>
"10",
477 "$dirselect" =>
"10",
482 "$selection" =>
"10",
483 "$sh_status" =>
"10",
489 "$version_date" =>
"10",
491 "APTACCEPTC" =>
"10",
492 "APTCATPATH" =>
"10",
493 "APTDICTPATH" =>
"10",
495 "APTLANGAPTMENUFILE" =>
"10",
496 "APTLOADPATH" =>
"10",
500 "APTSTARTUP" =>
"10",
501 "APTTBLWIDTH" =>
"10",
502 "APTUNDOLIM" =>
"10");
511 $this->linkscripts = array(
521 "10" =>
"donothing");