2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"gray");
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(
62 "CROSS-TRANSLATE" =>
"1",
70 "DOCUMENT-END" =>
"1",
71 "DOCUMENT-START" =>
"1",
85 "HALT-EVERYTHING" =>
"1",
90 "INCLUDE-START" =>
"1",
100 "MARKED-SECTION" =>
"1",
101 "MARKUP-COMMENT" =>
"1",
102 "MARKUP-ERROR" =>
"1",
103 "MARKUP-PARSER" =>
"1",
116 "PROCESS-END" =>
"1",
117 "PROCESS-START" =>
"1",
118 "PROCESSING-INSTRUCTION" =>
"1",
120 "PROLOG-IN-ERROR" =>
"1",
134 "SGML-COMMENT" =>
"1",
135 "SGML-DECLARATION-END" =>
"1",
142 "SGML-PARSER" =>
"1",
147 "SYSTEM-CALL" =>
"1",
148 "TEST-SYSTEM" =>
"1",
155 "UP-TRANSLATE" =>
"1",
157 "WHITE-SPACE" =>
"1",
172 "BINARY-INPUT" =>
"2",
173 "BINARY-MODE" =>
"2",
174 "BINARY-OUTPUT" =>
"2",
175 "BREAK-WIDTH" =>
"2",
181 "COMPILED-DATE" =>
"2",
185 "CONTEXT-TRANSLATE" =>
"2",
191 "DATA-ATTRIBUTE" =>
"2",
192 "DATA-ATTRIBUTES" =>
"2",
193 "DATA-CONTENT" =>
"2",
194 "DATA-LETTERS" =>
"2",
196 "DECLARED-CONREF" =>
"2",
197 "DECLARED-CURRENT" =>
"2",
198 "DECLARED-DEFAULTED" =>
"2",
199 "DECLARED-FIXED" =>
"2",
200 "DECLARED-IMPLIED" =>
"2",
201 "DECLARED-REQUIRED" =>
"2",
202 "DEFAULT-ENTITY" =>
"2",
210 "DOCUMENT-ELEMENT" =>
"2",
211 "DOMAIN-FREE" =>
"2",
212 "DOWN-TRANSLATE" =>
"2",
221 "EPILOG-START" =>
"2",
226 "EXTERNAL-DATA-ENTITY" =>
"2",
227 "EXTERNAL-ENTITY" =>
"2",
228 "EXTERNAL-FUNCTION" =>
"2",
229 "EXTERNAL-OUTPUT-FUNCTION" =>
"2",
230 "EXTERNAL-TEXT-ENTITY" =>
"2",
234 "FUNCTION-LIBRARY" =>
"2",
237 "GREATER-EQUAL" =>
"2",
238 "GREATER-THAN" =>
"2",
242 "HERALDED-NAMES" =>
"2",
244 "ID-CHECKING" =>
"2",
251 "INITIAL-SIZE" =>
"2",
252 "INSERTION-BREAK" =>
"2",
255 "INVALID-DATA" =>
"2",
275 "NAME-LETTERS" =>
"2",
279 "NDATA-ENTITY" =>
"2",
281 "NESTED-REFERENTS" =>
"2",
285 "NO-DEFAULT-IO" =>
"2",
287 "NON-IMPLIED" =>
"2",
313 "REFERENTS-ALLOWED" =>
"2",
314 "REFERENTS-DISPLAYED" =>
"2",
315 "REFERENTS-NOT-ALLOWED" =>
"2",
318 "REPLACEMENT-BREAK" =>
"2",
320 "SILENT-REFERENT" =>
"2",
327 "SUBDOC-ENTITY" =>
"2",
328 "SUBDOCUMENT" =>
"2",
329 "SUBDOCUMENTS" =>
"2",
353 "#ADDITIONAL-INFO" =>
"2",
358 "#COMMAND-LINE-NAMES" =>
"2",
360 "#CURRENT-INPUT" =>
"2",
361 "#CURRENT-OUTPUT" =>
"2",
368 "#ERROR-CODE" =>
"2",
374 "#LANGUAGE-VERSION" =>
"2",
379 "#LINE-NUMBER" =>
"2",
380 "#MAIN-INPUT" =>
"2",
381 "#MAIN-OUTPUT" =>
"2",
382 "#MARKUP-ERROR-COUNT" =>
"2",
383 "#MARKUP-ERROR-TOTAL" =>
"2",
384 "#MARKUP-PARSER" =>
"2",
385 "#MARKUP-WARNING-COUNT" =>
"2",
386 "#MARKUP-WARNING-TOTAL" =>
"2",
390 "#PLATFORM-INFO" =>
"2",
391 "#PROCESS-INPUT" =>
"2",
392 "#PROCESS-OUTPUT" =>
"2",
393 "#RECOVERY-INFO" =>
"2",
395 "#SGML-ERROR-COUNT" =>
"2",
396 "#SGML-ERROR-TOTAL" =>
"2",
397 "#SGML-WARNING-COUNT" =>
"2",
398 "#SGML-WARNING-TOTAL" =>
"2",
406 "CDATA-ENTITY" =>
"3",
407 "CONTENT-END" =>
"3",
408 "CONTENT-START" =>
"3",
415 "SDATA-ENTITY" =>
"3",
419 "VALUE-START" =>
"3",
421 "WORD-START" =>
"3");
430 $this->linkscripts = array(