2 $BEAUT_PATH = realpath(
".") .
"/Services/COPage/syntax_highlight/php";
6 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
24 $this->colours =
array(
"blue",
"purple",
"gray");
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(
66 "CROSS-TRANSLATE" =>
"1",
74 "DOCUMENT-END" =>
"1",
75 "DOCUMENT-START" =>
"1",
89 "HALT-EVERYTHING" =>
"1",
94 "INCLUDE-START" =>
"1",
104 "MARKED-SECTION" =>
"1",
105 "MARKUP-COMMENT" =>
"1",
106 "MARKUP-ERROR" =>
"1",
107 "MARKUP-PARSER" =>
"1",
120 "PROCESS-END" =>
"1",
121 "PROCESS-START" =>
"1",
122 "PROCESSING-INSTRUCTION" =>
"1",
124 "PROLOG-IN-ERROR" =>
"1",
138 "SGML-COMMENT" =>
"1",
139 "SGML-DECLARATION-END" =>
"1",
146 "SGML-PARSER" =>
"1",
151 "SYSTEM-CALL" =>
"1",
152 "TEST-SYSTEM" =>
"1",
159 "UP-TRANSLATE" =>
"1",
161 "WHITE-SPACE" =>
"1",
176 "BINARY-INPUT" =>
"2",
177 "BINARY-MODE" =>
"2",
178 "BINARY-OUTPUT" =>
"2",
179 "BREAK-WIDTH" =>
"2",
185 "COMPILED-DATE" =>
"2",
189 "CONTEXT-TRANSLATE" =>
"2",
195 "DATA-ATTRIBUTE" =>
"2",
196 "DATA-ATTRIBUTES" =>
"2",
197 "DATA-CONTENT" =>
"2",
198 "DATA-LETTERS" =>
"2",
200 "DECLARED-CONREF" =>
"2",
201 "DECLARED-CURRENT" =>
"2",
202 "DECLARED-DEFAULTED" =>
"2",
203 "DECLARED-FIXED" =>
"2",
204 "DECLARED-IMPLIED" =>
"2",
205 "DECLARED-REQUIRED" =>
"2",
206 "DEFAULT-ENTITY" =>
"2",
214 "DOCUMENT-ELEMENT" =>
"2",
215 "DOMAIN-FREE" =>
"2",
216 "DOWN-TRANSLATE" =>
"2",
225 "EPILOG-START" =>
"2",
230 "EXTERNAL-DATA-ENTITY" =>
"2",
231 "EXTERNAL-ENTITY" =>
"2",
232 "EXTERNAL-FUNCTION" =>
"2",
233 "EXTERNAL-OUTPUT-FUNCTION" =>
"2",
234 "EXTERNAL-TEXT-ENTITY" =>
"2",
238 "FUNCTION-LIBRARY" =>
"2",
241 "GREATER-EQUAL" =>
"2",
242 "GREATER-THAN" =>
"2",
246 "HERALDED-NAMES" =>
"2",
248 "ID-CHECKING" =>
"2",
255 "INITIAL-SIZE" =>
"2",
256 "INSERTION-BREAK" =>
"2",
259 "INVALID-DATA" =>
"2",
279 "NAME-LETTERS" =>
"2",
283 "NDATA-ENTITY" =>
"2",
285 "NESTED-REFERENTS" =>
"2",
289 "NO-DEFAULT-IO" =>
"2",
291 "NON-IMPLIED" =>
"2",
317 "REFERENTS-ALLOWED" =>
"2",
318 "REFERENTS-DISPLAYED" =>
"2",
319 "REFERENTS-NOT-ALLOWED" =>
"2",
322 "REPLACEMENT-BREAK" =>
"2",
324 "SILENT-REFERENT" =>
"2",
331 "SUBDOC-ENTITY" =>
"2",
332 "SUBDOCUMENT" =>
"2",
333 "SUBDOCUMENTS" =>
"2",
357 "#ADDITIONAL-INFO" =>
"2",
362 "#COMMAND-LINE-NAMES" =>
"2",
364 "#CURRENT-INPUT" =>
"2",
365 "#CURRENT-OUTPUT" =>
"2",
372 "#ERROR-CODE" =>
"2",
378 "#LANGUAGE-VERSION" =>
"2",
383 "#LINE-NUMBER" =>
"2",
384 "#MAIN-INPUT" =>
"2",
385 "#MAIN-OUTPUT" =>
"2",
386 "#MARKUP-ERROR-COUNT" =>
"2",
387 "#MARKUP-ERROR-TOTAL" =>
"2",
388 "#MARKUP-PARSER" =>
"2",
389 "#MARKUP-WARNING-COUNT" =>
"2",
390 "#MARKUP-WARNING-TOTAL" =>
"2",
394 "#PLATFORM-INFO" =>
"2",
395 "#PROCESS-INPUT" =>
"2",
396 "#PROCESS-OUTPUT" =>
"2",
397 "#RECOVERY-INFO" =>
"2",
399 "#SGML-ERROR-COUNT" =>
"2",
400 "#SGML-ERROR-TOTAL" =>
"2",
401 "#SGML-WARNING-COUNT" =>
"2",
402 "#SGML-WARNING-TOTAL" =>
"2",
410 "CDATA-ENTITY" =>
"3",
411 "CONTENT-END" =>
"3",
412 "CONTENT-START" =>
"3",
419 "SDATA-ENTITY" =>
"3",
423 "VALUE-START" =>
"3",
425 "WORD-START" =>
"3");
434 $this->linkscripts =
array(
Create styles array
The data for the language used.