3 $BEAUT_PATH = realpath(
".") .
"/Services/COPage/syntax_highlight/php";
7 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
26 $this->colours =
array(
"blue",
"purple",
"gray",
"brown");
27 $this->quotecolour =
"blue";
28 $this->blockcommentcolour =
"green";
29 $this->linecommentcolour =
"green";
33 $this->indent =
array(
"{");
34 $this->unindent =
array(
"}");
38 $this->stringchars =
array();
39 $this->delimiters =
array(
"~",
"!",
"@",
"$",
"%",
"^",
"&",
"*",
"(",
")",
"+",
"=",
"|",
"\\",
"/",
"{",
"}",
"[",
"]",
":",
";",
"\"",
"'",
"<",
">",
" ",
" ",
",",
".",
"?",
"/",
" ");
44 $this->linecommenton =
array(
"#");
45 $this->blockcommenton =
array(
"");
46 $this->blockcommentoff =
array(
"");
50 $this->keywords =
array(
133 "endprotoent" =>
"2",
152 "gethostbyaddr" =>
"2",
153 "gethostbyname" =>
"2",
156 "getnetbyaddr" =>
"2",
157 "getnetbyname" =>
"2",
159 "getpeername" =>
"2",
162 "getpriority" =>
"2",
163 "getprotobyname" =>
"2",
164 "getprotobynumber" =>
"2",
165 "getprotoent" =>
"2",
169 "getservbyname" =>
"2",
170 "getservbyport" =>
"2",
172 "getsockname" =>
"2",
235 "setpriority" =>
"2",
236 "setprotoent" =>
"2",
325 $this->linkscripts =
array(
339 $outlink =
"http://perldoc.perl.org/functions/" . $keywordin .
".html";
340 return "<a href=\"$outlink\">$keywordin</a>";
Create styles array
The data for the language used.