2 $BEAUT_PATH = realpath(
".") .
"/Services/COPage/syntax_highlight/php";
6 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
11 parent::__construct();
24 $this->colours =
array(
"blue",
"purple");
25 $this->quotecolour =
"blue";
26 $this->blockcommentcolour =
"green";
27 $this->linecommentcolour =
"green";
31 $this->indent =
array();
32 $this->unindent =
array();
36 $this->stringchars =
array(
"\"",
"'");
37 $this->delimiters =
array(
"~",
"@",
"$",
"%",
"^",
"&",
"*",
"(",
")",
"+",
"=",
"|",
"\\",
"{",
"}",
"[",
"]",
":",
";",
"\"",
"'",
"<",
">",
" ",
",",
" ",
".",
"?");
42 $this->linecommenton =
array(
"");
43 $this->blockcommenton =
array(
"<!--");
44 $this->blockcommentoff =
array(
"-->");
48 $this->keywords =
array(
73 "<BLOCKQUOTE>" =>
"1",
74 "</BLOCKQUOTE>" =>
"1",
112 "</FIELDSET>" =>
"1",
120 "</FRAMESET>" =>
"1",
169 "</MULTICOL>" =>
"1",
172 "</NOFRAMES>" =>
"1",
176 "</NOSCRIPT>" =>
"1",
184 "</OPTGROUP>" =>
"1",
230 "</TEXTAREA>" =>
"1",
254 "<ACCEPT-CHARSET>" =>
"2",
256 "<ACCESSKEY>" =>
"2",
263 "<BACKGROUND>" =>
"2",
268 "<CELLPADDING>" =>
"2",
269 "<CELLSPACING>" =>
"2",
297 "<FRAMEBORDER>" =>
"2",
298 "<FRAMESPACING>" =>
"2",
305 "<HTTP-EQUIV>" =>
"2",
315 "<MARGINHEIGHT>" =>
"2",
316 "<MARGINWIDTH>" =>
"2",
317 "<MAXLENGTH>" =>
"2",
329 "<ONKEYDOWN>" =>
"2",
330 "<ONKEYPRESS>" =>
"2",
338 "<ONDBLCLICK>" =>
"2",
339 "<ONMOUSEDOWN>" =>
"2",
340 "<ONMOUSEMOVE>" =>
"2",
341 "<ONMOUSEOUT>" =>
"2",
342 "<ONMOUSEOVER>" =>
"2",
343 "<ONMOUSEUP>" =>
"2",
354 "<SCROLLING>" =>
"2",
368 "<TOPMARGIN>" =>
"2",
374 "<VALUETYPE>" =>
"2",
387 $this->linkscripts =
array(
389 "2>" =>
"donothing");
Create styles array
The data for the language used.