3 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
5 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
22 $this->colours = array(
"blue",
"purple",
"gray",
"brown");
23 $this->quotecolour =
"blue";
24 $this->blockcommentcolour =
"green";
25 $this->linecommentcolour =
"green";
29 $this->indent = array(
"{");
30 $this->unindent = array(
"}");
34 $this->stringchars = array();
35 $this->delimiters = array(
"~",
"!",
"@",
"$",
"%",
"^",
"&",
"*",
"(",
")",
"+",
"=",
"|",
"\\",
"/",
"{",
"}",
"[",
"]",
":",
";",
"\"",
"'",
"<",
">",
" ",
" ",
",",
".",
"?",
"/",
" ");
40 $this->linecommenton = array(
"#");
41 $this->blockcommenton = array(
"");
42 $this->blockcommentoff = array(
"");
46 $this->keywords = array(
129 "endprotoent" =>
"2",
148 "gethostbyaddr" =>
"2",
149 "gethostbyname" =>
"2",
152 "getnetbyaddr" =>
"2",
153 "getnetbyname" =>
"2",
155 "getpeername" =>
"2",
158 "getpriority" =>
"2",
159 "getprotobyname" =>
"2",
160 "getprotobynumber" =>
"2",
161 "getprotoent" =>
"2",
165 "getservbyname" =>
"2",
166 "getservbyport" =>
"2",
168 "getsockname" =>
"2",
231 "setpriority" =>
"2",
232 "setprotoent" =>
"2",
321 $this->linkscripts = array(
335 $outlink =
"http://perldoc.perl.org/functions/".$keywordin.
".html";
336 return "<a href=\"$outlink\">$keywordin</a>";