3 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
5 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
21 $this->colours = array(
"blue",
"purple",
"gray",
"brown");
22 $this->quotecolour =
"blue";
23 $this->blockcommentcolour =
"green";
24 $this->linecommentcolour =
"green";
28 $this->indent = array(
"do",
"global function",
"if");
29 $this->unindent = array(
"end if",
"end while",
"end for",
"end function",
"end procedure",
"end type");
33 $this->stringchars = array(
"\"");
34 $this->delimiters = array(
"~",
"@",
"%",
"^",
"&",
"*",
"(",
")",
"-",
"+",
"|",
"\\",
"{",
"}",
"[",
"]",
":",
";",
"\"",
"'",
"<",
">",
" ",
",",
" ");
35 $this->escchar =
"\\";
39 $this->linecommenton = array(
"--");
40 $this->blockcommenton = array(
"");
41 $this->blockcommentoff = array(
"");
45 $this->keywords = array(
84 "allocate_low" =>
"3",
85 "allocate_string" =>
"3",
86 "atom_to_float64" =>
"3",
87 "atom_to_float32" =>
"3",
89 "bytes_to_int" =>
"3",
98 "command_line" =>
"3",
99 "clear_screen" =>
"3",
103 "crash_message" =>
"3",
111 "display_text_image" =>
"3",
113 "display_image" =>
"3",
114 "dos_interrupt" =>
"3",
115 "define_c_proc" =>
"3",
116 "define_c_func" =>
"3",
117 "define_c_var" =>
"3",
125 "float64_to_atom" =>
"3",
126 "float32_to_atom" =>
"3",
127 "free_console" =>
"3",
135 "get_position" =>
"3",
136 "graphics_mode" =>
"3",
137 "get_all_palette" =>
"3",
138 "get_active_page" =>
"3",
139 "get_display_page" =>
"3",
140 "get_screen_char" =>
"3",
143 "int_to_bytes" =>
"3",
144 "int_to_bits" =>
"3",
150 "lock_memory" =>
"3",
152 "mouse_events" =>
"3",
153 "mouse_pointer" =>
"3",
154 "machine_func" =>
"3",
155 "machine_proc" =>
"3",
158 "message_box" =>
"3",
169 "prompt_string" =>
"3",
170 "prompt_number" =>
"3",
175 "put_screen_char" =>
"3",
187 "read_bitmap" =>
"3",
188 "register_block" =>
"3",
196 "system_exec" =>
"3",
199 "save_bitmap" =>
"3",
200 "set_active_page" =>
"3",
201 "set_display_page" =>
"3",
203 "save_text_image" =>
"3",
204 "save_screen" =>
"3",
215 "unlock_file" =>
"3",
216 "unregister_block" =>
"3",
219 "video_config" =>
"3",
220 "wildcard_match" =>
"3",
221 "wildcard_file" =>
"3",
253 $this->linkscripts = array(