2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"gray",
"blue",
"brown");
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(
69 "<blockquote>" =>
"1",
71 "</blockquote>" =>
"1",
113 "</fieldset>" =>
"1",
121 "</frameset>" =>
"1",
177 "</noframes>" =>
"1",
179 "</noscript>" =>
"1",
187 "</optgroup>" =>
"1",
238 "</textarea>" =>
"1",
268 "accept-charset" =>
"2",
282 "cdata-section-elements" =>
"2",
283 "cellpadding" =>
"2",
284 "cellspacing" =>
"2",
306 "decimal-separator" =>
"2",
311 "disable-output-escaping" =>
"2",
313 "doctype-public" =>
"2",
314 "doctype-system" =>
"2",
318 "exclude-result-prefixes" =>
"2",
319 "extension-element-prefixes" =>
"2",
324 "frameborder" =>
"2",
325 "framespacing" =>
"2",
327 "grouping-separator" =>
"3",
328 "grouping-size" =>
"3",
343 "letter-value" =>
"3",
349 "marginheight" =>
"2",
350 "marginwidth" =>
"2",
365 "omit-xml-declaration" =>
"2",
375 "onmousedown" =>
"2",
376 "onmousemove" =>
"2",
378 "onmouseover" =>
"2",
385 "pattern-separator" =>
"2",
393 "result-prefix" =>
"2",
411 "stylesheet-prefix" =>
"2",
423 "use-attribute-sets" =>
"2",
436 "apply-word-spacing" =>
"3",
437 "auto-restore" =>
"3",
439 "background-attachment" =>
"3",
440 "background-color" =>
"3",
441 "background-image" =>
"3",
442 "background-position" =>
"3",
443 "background-repeat" =>
"3",
444 "baseline-shift" =>
"3",
446 "block-progression-dimension" =>
"3",
447 "border-after-color" =>
"3",
448 "border-after-style" =>
"3",
449 "border-after-width" =>
"3",
450 "border-before-color" =>
"3",
451 "border-before-style" =>
"3",
452 "border-before-width" =>
"3",
453 "border-bottom" =>
"3",
454 "border-bottom-color" =>
"3",
455 "border-bottom-style" =>
"3",
456 "border-bottom-width" =>
"3",
457 "border-collapse" =>
"3",
458 "border-color" =>
"3",
459 "border-end-color" =>
"3",
460 "border-end-style" =>
"3",
461 "border-end-width" =>
"3",
462 "border-left" =>
"3",
463 "border-left-color" =>
"3",
464 "border-left-style" =>
"3",
465 "border-left-width" =>
"3",
466 "border-right" =>
"3",
467 "border-right-color" =>
"3",
468 "border-right-style" =>
"3",
469 "border-right-width" =>
"3",
470 "border-spacing" =>
"3",
471 "border-start-color" =>
"3",
472 "border-start-style" =>
"3",
473 "border-start-width" =>
"3",
474 "border-style" =>
"3",
476 "border-top-color" =>
"3",
477 "border-top-style" =>
"3",
478 "border-top-width" =>
"3",
479 "border-width" =>
"3",
481 "break-after" =>
"3",
482 "break-before" =>
"3",
483 "caption-side" =>
"3",
488 "column-count" =>
"3",
490 "column-number" =>
"3",
491 "column-width" =>
"3",
496 "destination-placement-offset" =>
"3",
500 "empty-cells" =>
"3",
504 "external-destination" =>
"3",
508 "font-family" =>
"3",
509 "font-height-override-after" =>
"3",
510 "font-height-override-before" =>
"3",
512 "font-size-adjust" =>
"3",
513 "font-stretch" =>
"3",
515 "font-variant" =>
"3",
516 "font-weight" =>
"3",
517 "force-page-count" =>
"3",
518 "glyph-orientation-horizontal" =>
"3",
519 "glyph-orientation-vertical" =>
"3",
521 "hyphenation-character" =>
"3",
522 "hyphenation-keep" =>
"3",
523 "hyphenation-ladder-count" =>
"3",
524 "hyphenation-push-character-count" =>
"3",
525 "hyphenation-remain-character-count" =>
"3",
526 "indicate-destination" =>
"3",
527 "inhibit-line-breaks" =>
"3",
528 "initial-page-number" =>
"3",
529 "inline-progression-dimension" =>
"3",
530 "internal-destination" =>
"3",
532 "keep-with-next" =>
"3",
533 "keep-with-previous" =>
"3",
534 "last-line-end-indent" =>
"3",
535 "leader-alignment" =>
"3",
536 "leader-length" =>
"3",
537 "leader-pattern" =>
"3",
538 "leader-pattern-width" =>
"3",
540 "letter-spacing" =>
"3",
541 "linefeed-treatment" =>
"3",
542 "line-height" =>
"5",
543 "line-height-shift-adjustment" =>
"3",
544 "line-stacking-strategy" =>
"3",
546 "margin-bottom" =>
"3",
547 "margin-left" =>
"3",
548 "margin-right" =>
"3",
550 "master-name" =>
"3",
552 "maximum-block-progression-dimension" =>
"3",
553 "maximum-inline-progression-dimension" =>
"3",
554 "maximum-repeats" =>
"3",
556 "may-break-after-row" =>
"3",
557 "may-break-before-row" =>
"3",
559 "minimum-block-progression-dimension" =>
"3",
560 "minimum-inline-progression-dimension" =>
"3",
562 "number-columns-repeated" =>
"3",
563 "number-columns-spanned" =>
"3",
564 "number-rows-spanned" =>
"3",
565 "odd-or-even" =>
"3",
569 "padding-after" =>
"3",
570 "padding-before" =>
"3",
571 "padding-bottom" =>
"3",
572 "padding-end" =>
"3",
573 "padding-left" =>
"3",
574 "padding-right" =>
"3",
575 "padding-start" =>
"3",
576 "padding-top" =>
"3",
577 "page-break-after" =>
"3",
578 "page-break-before" =>
"3",
579 "page-break-inside" =>
"3",
580 "page-height" =>
"3",
581 "page-position" =>
"3",
584 "pause-after" =>
"3",
585 "pause-before" =>
"3",
587 "pitch-range" =>
"3",
588 "play-during" =>
"3",
591 "provisional-distance-between-starts" =>
"3",
592 "provisional-label-separation" =>
"3",
593 "reference-orientation" =>
"3",
595 "region-name" =>
"3",
600 "rule-thickness" =>
"3",
602 "score-spaces" =>
"3",
604 "show-destination" =>
"3",
605 "source-document" =>
"3",
606 "space-after" =>
"3",
607 "space-before" =>
"3",
609 "space-start" =>
"3",
610 "space-treatment" =>
"3",
612 "speak-header" =>
"3",
613 "speak-numeral" =>
"3",
614 "speak-punctuation" =>
"3",
615 "speech-rate" =>
"3",
616 "start-indent" =>
"3",
617 "starting-state" =>
"3",
620 "suppress-at-eol" =>
"3",
622 "table-layout" =>
"3",
623 "table-omit-footer-at-break" =>
"3",
624 "table-omit-header-at-break" =>
"3",
626 "text-align-last" =>
"3",
627 "text-decoration" =>
"3",
628 "text-indent" =>
"3",
629 "text-shadow" =>
"3",
630 "text-transform" =>
"3",
632 "unicode-bidi" =>
"3",
633 "vertical-align" =>
"3",
635 "voice-family" =>
"3",
637 "white-space" =>
"3",
638 "white-space-collapse" =>
"3",
639 "white-space-treatment" =>
"3",
641 "word-spacing" =>
"3",
642 "wrap-option" =>
"3",
643 "writing-mode" =>
"3",
646 "<fo:bidi-override>" =>
"4",
647 "<fo:bidi-override" =>
"4",
648 "</fo:bidi-override>" =>
"4",
651 "</fo:block>" =>
"4",
652 "<fo:block-container>" =>
"4",
653 "<fo:block-container" =>
"4",
654 "</fo:block-container>" =>
"4",
655 "<fo:character>" =>
"4",
656 "<fo:character" =>
"4",
657 "</fo:character>" =>
"4",
658 "<fo:conditional-page-master-reference>" =>
"4",
659 "<fo:conditional-page-master-reference" =>
"4",
660 "</fo:conditional-page-master-reference>" =>
"4",
661 "<fo:external-graphic>" =>
"4",
662 "<fo:external-graphic" =>
"4",
663 "</fo:external-graphic>" =>
"4",
666 "</fo:float>" =>
"4",
670 "<fo:footnote>" =>
"4",
671 "<fo:footnote" =>
"4",
672 "</fo:footnote>" =>
"4",
673 "<fo:footnote-citation>" =>
"4",
674 "<fo:footnote-citation" =>
"4",
675 "</fo:footnote-citation>" =>
"4",
676 "<fo:initial-property-set>" =>
"4",
677 "<fo:initial-property-set" =>
"4",
678 "</fo:initial-property-set>" =>
"4",
679 "<fo:inline>" =>
"4",
681 "</fo:inline>" =>
"4",
682 "<fo:inline-container>" =>
"4",
683 "<fo:inline-container" =>
"4",
684 "</fo:inline-container>" =>
"4",
685 "<fo:instream-graphic>" =>
"4",
686 "<fo:instream-graphic" =>
"4",
687 "</fo:instream-graphic>" =>
"4",
688 "<fo:layout-master-set>" =>
"4",
689 "<fo:layout-master-set" =>
"4",
690 "</fo:layout-master-set>" =>
"4",
691 "<fo:leader>" =>
"4",
693 "</fo:leader>" =>
"4",
694 "<fo:list-block>" =>
"4",
695 "<fo:list-block" =>
"4",
696 "</fo:list-block>" =>
"4",
697 "<fo:list-item>" =>
"4",
698 "<fo:list-item" =>
"4",
699 "</fo:list-item>" =>
"4",
700 "<fo:list-item-body>" =>
"4",
701 "<fo:list-item-body" =>
"4",
702 "</fo:list-item-body>" =>
"4",
703 "<fo:list-item-label>" =>
"4",
704 "<fo:list-item-label" =>
"4",
705 "</fo:list-item-label>" =>
"4",
706 "<fo:multi-case>" =>
"4",
707 "<fo:multi-case" =>
"4",
708 "</fo:multi-case>" =>
"4",
709 "<fo:multi-properties>" =>
"4",
710 "<fo:multi-properties" =>
"4",
711 "</fo:multi-properties>" =>
"4",
712 "<fo:multi-property-set>" =>
"4",
713 "<fo:multi-property-set" =>
"4",
714 "</fo:multi-property-set>" =>
"4",
715 "<fo:multi-switch>" =>
"4",
716 "<fo:multi-switch" =>
"4",
717 "</fo:multi-switch>" =>
"4",
718 "<fo:multi-toggle>" =>
"4",
719 "<fo:multi-toggle" =>
"4",
720 "</fo:multi-toggle>" =>
"4",
721 "<fo:page-number>" =>
"4",
722 "<fo:page-number" =>
"4",
723 "</fo:page-number>" =>
"4",
724 "<fo:page-number-citation>" =>
"4",
725 "<fo:page-number-citation" =>
"4",
726 "</fo:page-number-citation>" =>
"4",
727 "<fo:page-sequence>" =>
"4",
728 "<fo:page-sequence" =>
"4",
729 "</fo:page-sequence>" =>
"4",
730 "<fo:page-sequence-master>" =>
"4",
731 "<fo:page-sequence-master" =>
"4",
732 "</fo:page-sequence-master>" =>
"4",
733 "<fo:region-after>" =>
"4",
734 "<fo:region-after" =>
"4",
735 "</fo:region-after>" =>
"4",
736 "<fo:region-before>" =>
"4",
737 "<fo:region-before" =>
"4",
738 "</fo:region-before>" =>
"4",
739 "<fo:region-body>" =>
"4",
740 "<fo:region-body" =>
"4",
741 "</fo:region-body>" =>
"4",
742 "<fo:region-end>" =>
"4",
743 "<fo:region-end" =>
"4",
744 "</fo:region-end>" =>
"4",
745 "<fo:region-start>" =>
"4",
746 "<fo:region-start" =>
"4",
747 "</fo:region-start>" =>
"4",
748 "<fo:repeatable-page-master-alternatives>" =>
"4",
749 "<fo:repeatable-page-master-alternatives" =>
"4",
750 "</fo:repeatable-page-master-alternatives>" =>
"4",
751 "<fo:repeatable-page-master-reference>" =>
"4",
752 "<fo:repeatable-page-master-reference" =>
"4",
753 "</fo:repeatable-page-master-reference>" =>
"4",
757 "<fo:simple-link>" =>
"4",
758 "<fo:simple-link" =>
"4",
759 "</fo:simple-link>" =>
"4",
760 "<fo:simple-page-master>" =>
"4",
761 "<fo:simple-page-master" =>
"4",
762 "</fo:simple-page-master>" =>
"4",
763 "<fo:single-page-master-reference>" =>
"4",
764 "<fo:single-page-master-reference" =>
"4",
765 "</fo:single-page-master-reference>" =>
"4",
766 "<fo:static-content>" =>
"4",
767 "<fo:static-content" =>
"4",
768 "</fo:static-content>" =>
"4",
771 "</fo:table>" =>
"4",
772 "<fo:table-and-caption>" =>
"4",
773 "<fo:table-and-caption" =>
"4",
774 "</fo:table-and-caption>" =>
"4",
775 "<fo:table-body>" =>
"4",
776 "<fo:table-body" =>
"4",
777 "</fo:table-body>" =>
"4",
778 "<fo:table-caption>" =>
"4",
779 "<fo:table-caption" =>
"4",
780 "</fo:table-caption>" =>
"4",
781 "<fo:table-cell>" =>
"4",
782 "<fo:table-cell" =>
"4",
783 "</fo:table-cell>" =>
"4",
784 "<fo:table-column>" =>
"4",
785 "<fo:table-column" =>
"4",
786 "</fo:table-column>" =>
"4",
787 "<fo:table-footer>" =>
"4",
788 "<fo:table-footer" =>
"4",
789 "</fo:table-footer>" =>
"4",
790 "<fo:table-header>" =>
"4",
791 "<fo:table-header" =>
"4",
792 "</fo:table-header>" =>
"4",
793 "<fo:table-row>" =>
"4",
794 "<fo:table-row" =>
"4",
795 "</fo:table-row>" =>
"4",
796 "<fo:wrapper>" =>
"4",
797 "<fo:wrapper" =>
"4",
798 "</fo:wrapper>" =>
"4",
799 "<xsl:apply-imports" =>
"4",
800 "<xsl:apply-templates" =>
"4",
801 "<xsl:apply-templates/>" =>
"4",
802 "</xsl:apply-templates>" =>
"4",
803 "<xsl:attribute" =>
"4",
804 "</xsl:attribute>" =>
"4",
805 "<xsl:attribute-set" =>
"4",
806 "</xsl:attribute-set>" =>
"4",
807 "<xsl:call-template" =>
"4",
808 "</xsl:call-template>" =>
"4",
809 "<xsl:choose>" =>
"4",
810 "</xsl:choose>" =>
"4",
811 "<xsl:comment>" =>
"4",
812 "</xsl:comment>" =>
"4",
814 "</xsl:copy>" =>
"4",
815 "<xsl:copy-of" =>
"4",
816 "<xsl:decimal-format" =>
"4",
817 "<xsl:element" =>
"4",
818 "</xsl:element>" =>
"4",
819 "<xsl:fallback>" =>
"4",
820 "</xsl:fallback>" =>
"4",
821 "<xsl:for-each" =>
"4",
822 "</xsl:for-each>" =>
"4",
825 "<xsl:import" =>
"4",
826 "<xsl:include" =>
"4",
828 "<xsl:message" =>
"4",
829 "</xsl:message>" =>
"4",
830 "<xsl:namespace-alias" =>
"4",
831 "<xsl:number" =>
"4",
832 "<xsl:otherwise>" =>
"4",
833 "</xsl:otherwise>" =>
"4",
834 "<xsl:output" =>
"4",
836 "</xsl:param>" =>
"4",
837 "<xsl:preserve-space" =>
"4",
838 "<xsl:processing-instruction" =>
"4",
839 "</xsl:processing-instruction>" =>
"4",
841 "<xsl:strip-space" =>
"4",
842 "<xsl:stylesheet" =>
"4",
843 "</xsl:stylesheet>" =>
"4",
844 "<xsl:template" =>
"4",
845 "</xsl:template>" =>
"4",
848 "</xsl:text>" =>
"4",
849 "<xsl:transform" =>
"4",
850 "</xsl:transform>" =>
"4",
851 "<xsl:value-of" =>
"4",
852 "<xsl:variable" =>
"4",
853 "</xsl:variable>" =>
"4",
855 "</xsl:when>" =>
"4",
856 "<xsl:with-param" =>
"4",
857 "</xsl:with-param>" =>
"4",
889 "bidi-override" =>
"5",
898 "center-left" =>
"5",
899 "center-right" =>
"5",
903 "consider-shifts" =>
"5",
907 "disregard-shifts" =>
"5",
916 "extra-condensed" =>
"5",
917 "extra-expanded" =>
"5",
925 "font-height" =>
"5",
942 "line-through" =>
"5",
952 "message-box" =>
"5",
976 "reference-area" =>
"5",
993 "semi-condensed" =>
"5",
994 "semi-expanded" =>
"5",
1000 "small-caption" =>
"5",
1007 "status-bar" =>
"5",
1013 "text-bottom" =>
"5",
1015 "traditional" =>
"5",
1016 "transparent" =>
"5",
1017 "treat-as-space" =>
"5",
1019 "ultra-condensed" =>
"5",
1020 "ultra-expanded" =>
"5",
1023 "use-content" =>
"5",
1024 "use-font-metrics" =>
"5",
1035 "xsl-following" =>
"5",
1036 "xsl-preceding" =>
"5",
1037 "xsl-region-after" =>
"5",
1038 "xsl-region-before" =>
"5",
1039 "xsl-region-body" =>
"5",
1040 "xsl-region-end" =>
"5",
1041 "xsl-region-start" =>
"5",
1051 $this->linkscripts = array(
1056 "4" =>
"donothing");