2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
 
    4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
 
   20 $this->colours          = array(
"blue", 
"purple", 
"gray", 
"brown", 
"blue", 
"purple");
 
   21 $this->quotecolour              = 
"blue";
 
   22 $this->blockcommentcolour       = 
"green";
 
   23 $this->linecommentcolour        = 
"green";
 
   27 $this->indent                   = array();
 
   28 $this->unindent                 = array();
 
   32 $this->stringchars              = array(
"\"",
"'");
 
   34 $this->delimiters               = array(
"~", 
"@", 
"$", 
"%", 
"^", 
"&", 
"*", 
"(", 
")", 
"+", 
"=", 
"|", 
"\\", 
"{", 
"}", 
";", 
"\"", 
"'", 
"<", 
">", 
" ", 
",", 
"       ", 
" ");
 
   36 $this->tagbased                 = 
true;
 
   40 $this->linecommenton            = array(
"");
 
   41 $this->blockcommenton           = array(
"<!--");
 
   42 $this->blockcommentoff          = array(
"-->");
 
   46 $this->keywords                 = array(
 
   72                         "<addressList>" => 
"1", 
 
   73                         "</addressList>" => 
"1", 
 
   78                         "<affiliation>" => 
"1", 
 
   79                         "</affiliation>" => 
"1", 
 
  109                         "</attlDecl>" => 
"1", 
 
  117                         "<authority>" => 
"1", 
 
  118                         "</authority>" => 
"1", 
 
  119                         "<availability>" => 
"1", 
 
  120                         "<availability" => 
"1", 
 
  121                         "</availability>" => 
"1", 
 
  138                         "</biblFull>" => 
"1", 
 
  139                         "<biblScope>" => 
"1", 
 
  140                         "<biblStruct>" => 
"1", 
 
  141                         "<biblStruct" => 
"1", 
 
  142                         "</biblStruct>" => 
"1", 
 
  151                         "<birthDate>" => 
"1", 
 
  152                         "<birthPlace>" => 
"1", 
 
  158                         "<blockquote>" => 
"1", 
 
  159                         "<blockquote" => 
"1", 
 
  160                         "</blockquote>" => 
"1", 
 
  169                         "<broadcast>" => 
"1", 
 
  170                         "</broadcast>" => 
"1", 
 
  180                         "</calEvent>" => 
"1", 
 
  187                         "<castGroup>" => 
"1", 
 
  189                         "</castGroup>" => 
"1", 
 
  192                         "</castItem>" => 
"1", 
 
  194                         "</castList>" => 
"1", 
 
  198                         "</category>" => 
"1", 
 
  216                         "<character>" => 
"1", 
 
  218                         "</character>" => 
"1", 
 
  219                         "<characters>" => 
"1", 
 
  220                         "</characters>" => 
"1", 
 
  223                         "<children/>" => 
"1", 
 
  238                         "<classDecl>" => 
"1", 
 
  239                         "</classDecl>" => 
"1", 
 
  242                         "</classDoc>" => 
"1", 
 
  251                         "<codedCharSet>" => 
"1", 
 
  252                         "<codedCharSet" => 
"1", 
 
  256                         "</colgroup>" => 
"1", 
 
  262                         "<commentary" => 
"1", 
 
  263                         "</commentary>" => 
"1", 
 
  266                         "<constitution" => 
"1", 
 
  267                         "</constitution>" => 
"1", 
 
  268                         "<contents/>" => 
"1", 
 
  272                         "<correction>" => 
"1", 
 
  273                         "</correction>" => 
"1", 
 
  278                         "</creation>" => 
"1", 
 
  279                         "<creationDate>" => 
"1", 
 
  280                         "</creationDate>" => 
"1", 
 
  285                         "</dataDesc>" => 
"1", 
 
  291                         "</dateline>" => 
"1", 
 
  293                         "</dateRange>" => 
"1", 
 
  294                         "<dateStruct>" => 
"1", 
 
  295                         "<dateStruct" => 
"1", 
 
  296                         "</dateStruct>" => 
"1", 
 
  306                         "<define-macro" => 
"1", 
 
  307                         "</define-macro>" => 
"1", 
 
  308                         "<define-script>" => 
"1", 
 
  309                         "</define-script>" => 
"1", 
 
  310                         "<define-style" => 
"1", 
 
  315                         "<derivation" => 
"1", 
 
  316                         "</derivation>" => 
"1", 
 
  331                         "<display-group>" => 
"1", 
 
  332                         "<display-group" => 
"1", 
 
  333                         "</display-group>" => 
"1", 
 
  336                         "</distance>" => 
"1", 
 
  338                         "</distinct>" => 
"1", 
 
  339                         "<distributor>" => 
"1", 
 
  340                         "</distributor>" => 
"1", 
 
  374                         "<docAuthor>" => 
"1", 
 
  375                         "</docAuthor>" => 
"1", 
 
  377                         "<docEdition>" => 
"1", 
 
  378                         "</docEdition>" => 
"1", 
 
  379                         "<docImprint>" => 
"1", 
 
  380                         "</docImprint>" => 
"1", 
 
  382                         "</docTitle>" => 
"1", 
 
  388                         "<earliesttime" => 
"1", 
 
  392                         "<editionStmt>" => 
"1", 
 
  393                         "</editionStmt>" => 
"1", 
 
  397                         "<editorialDecl>" => 
"1", 
 
  398                         "<editorialDecl" => 
"1", 
 
  399                         "</editorialDecl>" => 
"1", 
 
  400                         "<education>" => 
"1", 
 
  401                         "</education>" => 
"1", 
 
  409                         "</elemDecl>" => 
"1", 
 
  417                         "<encodingDesc>" => 
"1", 
 
  418                         "</encodingDesc>" => 
"1", 
 
  424                         "<entitySet>" => 
"1", 
 
  432                         "<entryFree>" => 
"1", 
 
  433                         "</entryFree>" => 
"1", 
 
  436                         "</epigraph>" => 
"1", 
 
  438                         "</epilogue>" => 
"1", 
 
  439                         "<equipment>" => 
"1", 
 
  440                         "</equipment>" => 
"1", 
 
  449                         "<exceptions>" => 
"1", 
 
  450                         "<exceptions" => 
"1", 
 
  451                         "</exceptions>" => 
"1", 
 
  454                         "</exemplum>" => 
"1", 
 
  459                         "<external-graphic" => 
"1", 
 
  463                         "<factuality" => 
"1", 
 
  464                         "</factuality>" => 
"1", 
 
  474                         "</fieldset>" => 
"1", 
 
  481                         "</fileDesc>" => 
"1", 
 
  485                         "<firstLang>" => 
"1", 
 
  486                         "</firstLang>" => 
"1", 
 
  494                         "<forestGrp>" => 
"1", 
 
  495                         "</forestGrp>" => 
"1", 
 
  502                         "<fsConstraints>" => 
"1", 
 
  503                         "<fsConstraints" => 
"1", 
 
  504                         "</fsConstraints>" => 
"1", 
 
  516                         "</foreName>" => 
"1", 
 
  522                         "</frameset>" => 
"1", 
 
  541                         "</geogName>" => 
"1", 
 
  581                         "</handList>" => 
"1", 
 
  582                         "<handShift>" => 
"1", 
 
  589                         "</headItem>" => 
"1", 
 
  590                         "<headLabel>" => 
"1", 
 
  592                         "</headLabel>" => 
"1", 
 
  601                         "<horizontal-rule/>" => 
"1", 
 
  618                         "<hyphenation" => 
"1", 
 
  619                         "</hyphenation>" => 
"1", 
 
  636                         "<imprimatur>" => 
"1", 
 
  644                         "<interaction" => 
"1", 
 
  646                         "<interpGrp>" => 
"1", 
 
  648                         "</interpGrp>" => 
"1", 
 
  649                         "<interpretation>" => 
"1", 
 
  650                         "<intervaltime" => 
"1", 
 
  668                         "</keywords>" => 
"1", 
 
  676                         "<lacunaEnd>" => 
"1", 
 
  677                         "<lacunaStart>" => 
"1", 
 
  680                         "<langKnown>" => 
"1", 
 
  681                         "</langKnown>" => 
"1", 
 
  684                         "</language>" => 
"1", 
 
  685                         "<langUsage>" => 
"1", 
 
  686                         "</langUsage>" => 
"1", 
 
  687                         "<latesttime" => 
"1", 
 
  721                         "<line-field" => 
"1", 
 
  722                         "</line-field>" => 
"1", 
 
  732                         "</listBibl>" => 
"1", 
 
  736                         "</list-item>" => 
"1", 
 
  741                         "</logtarget>" => 
"1", 
 
  753                         "<mentioned>" => 
"1", 
 
  755                         "</mentioned>" => 
"1", 
 
  778                         "</multicol>" => 
"1", 
 
  785                         "</nameLink>" => 
"1", 
 
  792                         "</noframes>" => 
"1", 
 
  796                         "<normalization>" => 
"1", 
 
  797                         "<normalization" => 
"1", 
 
  798                         "</normalization>" => 
"1", 
 
  800                         "</noscript>" => 
"1", 
 
  804                         "<notesStmt>" => 
"1", 
 
  805                         "</notesStmt>" => 
"1", 
 
  816                         "</occasion>" => 
"1", 
 
  817                         "<occupation>" => 
"1", 
 
  818                         "<occupation" => 
"1", 
 
  819                         "</occupation>" => 
"1", 
 
  835                         "</optgroup>" => 
"1", 
 
  845                         "</orgTitle>" => 
"1", 
 
  852                         "</ornament>" => 
"1", 
 
  856                         "<otherForm>" => 
"1", 
 
  864                         "<paragraph>" => 
"1", 
 
  866                         "</paragraph>" => 
"1", 
 
  873                         "<particDesc>" => 
"1", 
 
  874                         "</particDesc>" => 
"1", 
 
  875                         "<participant>" => 
"1", 
 
  876                         "<participant" => 
"1", 
 
  877                         "</participant>" => 
"1", 
 
  878                         "<participantGrp>" => 
"1", 
 
  879                         "<particLinks>" => 
"1", 
 
  880                         "<particLinks" => 
"1", 
 
  881                         "</particLinks>" => 
"1", 
 
  886                         "<performance>" => 
"1", 
 
  887                         "</performance>" => 
"1", 
 
  890                         "</persName>" => 
"1", 
 
  893                         "<personGrp>" => 
"1", 
 
  894                         "</personGrp>" => 
"1", 
 
  902                         "<placeName>" => 
"1", 
 
  904                         "</placeName>" => 
"1", 
 
  912                         "</postCode>" => 
"1", 
 
  919                         "<preparedness" => 
"1", 
 
  920                         "<principal>" => 
"1", 
 
  921                         "</principal>" => 
"1", 
 
  922                         "<profileDesc>" => 
"1", 
 
  923                         "</profileDesc>" => 
"1", 
 
  927                         "<projectDesc>" => 
"1", 
 
  928                         "</projectDesc>" => 
"1", 
 
  930                         "</prologue>" => 
"1", 
 
  932                         "<publicationStmt>" => 
"1", 
 
  933                         "</publicationStmt>" => 
"1", 
 
  934                         "<publisher>" => 
"1", 
 
  935                         "</publisher>" => 
"1", 
 
  937                         "</pubPlace>" => 
"1", 
 
  941                         "</purposes>" => 
"1", 
 
  947                         "</quotation>" => 
"1", 
 
  961                         "</recording>" => 
"1", 
 
  962                         "<recordingStmt>" => 
"1", 
 
  963                         "</recordingStmt>" => 
"1", 
 
  969                         "</refsDecl>" => 
"1", 
 
  977                         "<relationship" => 
"1", 
 
  978                         "</relationship>" => 
"1", 
 
  980                         "</relPlace>" => 
"1", 
 
  983                         "</rendition>" => 
"1", 
 
  984                         "<residence>" => 
"1", 
 
  985                         "</residence>" => 
"1", 
 
  990                         "</respStmt>" => 
"1", 
 
  993                         "<revisionDesc>" => 
"1", 
 
  994                         "</revisionDesc>" => 
"1", 
 
  999                         "</roleDesc>" => 
"1", 
 
 1000                         "<roleName>" => 
"1", 
 
 1002                         "</roleName>" => 
"1", 
 
 1023                         "<samplingDecl>" => 
"1", 
 
 1024                         "</samplingDecl>" => 
"1", 
 
 1026                         "</schedule>" => 
"1", 
 
 1030                         "<scriptStmt" => 
"1", 
 
 1031                         "</scriptStmt>" => 
"1", 
 
 1043                         "<segmentation>" => 
"1", 
 
 1044                         "</segmentation>" => 
"1", 
 
 1048                         "<select-elements>" => 
"1", 
 
 1049                         "</select-elements>" => 
"1", 
 
 1053                         "<sequence>" => 
"1", 
 
 1054                         "</sequence>" => 
"1", 
 
 1057                         "<seriesStmt>" => 
"1", 
 
 1058                         "</seriesStmt>" => 
"1", 
 
 1059                         "<seriesTitle>" => 
"1", 
 
 1060                         "</seriesTitle>" => 
"1", 
 
 1065                         "</setting>" => 
"1", 
 
 1066                         "<settingDesc>" => 
"1", 
 
 1067                         "</settingDesc>" => 
"1", 
 
 1071                         "<settlement" => 
"1", 
 
 1072                         "</settlement>" => 
"1", 
 
 1084                         "<soCalled>" => 
"1", 
 
 1086                         "</soCalled>" => 
"1", 
 
 1087                         "<socecStatus>" => 
"1", 
 
 1088                         "<socecStatus" => 
"1", 
 
 1092                         "<sourceDesc>" => 
"1", 
 
 1093                         "</sourceDesc>" => 
"1", 
 
 1103                         "</spanGrp>" => 
"1", 
 
 1105                         "</speaker>" => 
"1", 
 
 1107                         "</sponsor>" => 
"1", 
 
 1116                         "</stdVals>" => 
"1", 
 
 1135                         "<style-rule>" => 
"1", 
 
 1136                         "</style-rule>" => 
"1", 
 
 1145                         "<superEntry>" => 
"1", 
 
 1146                         "</superEntry>" => 
"1", 
 
 1147                         "<supplied>" => 
"1", 
 
 1149                         "</supplied>" => 
"1", 
 
 1152                         "</surName>" => 
"1", 
 
 1164                         "<tagsDecl>" => 
"1", 
 
 1165                         "</tagsDecl>" => 
"1", 
 
 1167                         "</tagUsage>" => 
"1", 
 
 1168                         "<target-element" => 
"1", 
 
 1169                         "</target-element>" => 
"1", 
 
 1170                         "<target-element/>" => 
"1", 
 
 1172                         "</taxonomy>" => 
"1", 
 
 1184                         "<teiCorpus.2>" => 
"1", 
 
 1185                         "</teiCorpus.2>" => 
"1", 
 
 1187                         "</teiFsd2>" => 
"1", 
 
 1188                         "<teiHeader>" => 
"1", 
 
 1189                         "<teiHeader" => 
"1", 
 
 1190                         "</teiHeader>" => 
"1", 
 
 1194                         "<termEntry>" => 
"1", 
 
 1195                         "<termEntry" => 
"1", 
 
 1196                         "</termEntry>" => 
"1", 
 
 1200                         "<textClass>" => 
"1", 
 
 1201                         "</textClass>" => 
"1", 
 
 1202                         "<textDesc>" => 
"1", 
 
 1204                         "</textDesc>" => 
"1", 
 
 1211                         "<timeLine>" => 
"1", 
 
 1213                         "</timeLine>" => 
"1", 
 
 1214                         "<timeRange" => 
"1", 
 
 1215                         "</timeRange>" => 
"1", 
 
 1216                         "<timeStruct>" => 
"1", 
 
 1217                         "<timeStruct" => 
"1", 
 
 1218                         "</timeStruct>" => 
"1", 
 
 1222                         "<titlePage>" => 
"1", 
 
 1223                         "<titlePage" => 
"1", 
 
 1224                         "</titlePage>" => 
"1", 
 
 1225                         "<titlePart>" => 
"1", 
 
 1226                         "<titlePart" => 
"1", 
 
 1227                         "</titlePart>" => 
"1", 
 
 1228                         "<titleStmt>" => 
"1", 
 
 1229                         "<titleStmt" => 
"1", 
 
 1230                         "</titleStmt>" => 
"1", 
 
 1231                         "<title-style" => 
"1", 
 
 1237                         "</trailer>" => 
"1", 
 
 1244                         "</triangle>" => 
"1", 
 
 1248                         "<textarea>" => 
"1", 
 
 1249                         "</textarea>" => 
"1", 
 
 1269                         "<uncertain>" => 
"1", 
 
 1272                         "</unclear>" => 
"1", 
 
 1279                         "</valDesc>" => 
"1", 
 
 1282                         "</valList>" => 
"1", 
 
 1283                         "<valRange>" => 
"1", 
 
 1284                         "</valRange>" => 
"1", 
 
 1291                         "<variantEncoding>" => 
"1", 
 
 1292                         "<variantEncoding" => 
"1", 
 
 1293                         "</variantEncoding>" => 
"1", 
 
 1294                         "<vDefault>" => 
"1", 
 
 1295                         "</vDefault>" => 
"1", 
 
 1305                         "<warning-para" => 
"1", 
 
 1306                         "</warning-para>" => 
"1", 
 
 1316                         "<witDetail" => 
"1", 
 
 1317                         "</witDetail>" => 
"1", 
 
 1320                         "</witList>" => 
"1", 
 
 1322                         "</witness>" => 
"1", 
 
 1323                         "<witStart>" => 
"1", 
 
 1327                         "</writing>" => 
"1", 
 
 1328                         "<writingSystemDeclaration>" => 
"1", 
 
 1329                         "<writingSystemDeclaration" => 
"1", 
 
 1330                         "</writingSystemDeclaration>" => 
"1", 
 
 1373                         "assertedValue=" => 
"2", 
 
 1374                         "attribute=" => 
"2", 
 
 1375                         "authority=" => 
"2", 
 
 1376                         "background=" => 
"2", 
 
 1377                         "background-color=" => 
"2", 
 
 1387                         "cellpadding=" => 
"2", 
 
 1388                         "cellspacing=" => 
"2", 
 
 1390                         "certainty=" => 
"2", 
 
 1391                         "character=" => 
"2", 
 
 1399                         "codedCharSet=" => 
"2", 
 
 1404                         "composite=" => 
"2", 
 
 1406                         "content-role=" => 
"2", 
 
 1415                         "dateCreated=" => 
"2", 
 
 1416                         "dateUpdated=" => 
"2", 
 
 1419                         "definition=" => 
"2", 
 
 1426                         "descendant=" => 
"2", 
 
 1427                         "descriptive=" => 
"2", 
 
 1437                         "dt:values=" => 
"2", 
 
 1442                         "end-indent=" => 
"2", 
 
 1445                         "entityLoc=" => 
"2", 
 
 1446                         "entitySet=" => 
"2", 
 
 1447                         "entityStd=" => 
"2", 
 
 1453                         "extendTarg=" => 
"2", 
 
 1461                         "field-width=" => 
"2", 
 
 1463                         "first-line-start-indent=" => 
"2", 
 
 1465                         "following=" => 
"2", 
 
 1466                         "font-family=" => 
"2", 
 
 1467                         "font-family-name=" => 
"2", 
 
 1468                         "font-posture=" => 
"2", 
 
 1469                         "font-size=" => 
"2", 
 
 1470                         "font-style=" => 
"2", 
 
 1471                         "font-weight=" => 
"2", 
 
 1474                         "frameborder=" => 
"2", 
 
 1475                         "framespacing=" => 
"2", 
 
 1488                         "has-value=" => 
"2", 
 
 1494                         "http-equiv=" => 
"2", 
 
 1513                         "left-margin=" => 
"2", 
 
 1523                         "line-spacing=" => 
"2", 
 
 1531                         "margin-bottom=" => 
"2", 
 
 1532                         "margin-left=" => 
"2", 
 
 1533                         "marginheight=" => 
"2", 
 
 1534                         "margin-top=" => 
"2", 
 
 1535                         "marginwidth=" => 
"2", 
 
 1538                         "maxOccurs=" => 
"2", 
 
 1542                         "minOccurs=" => 
"2", 
 
 1568                         "onmouseout" => 
"2", 
 
 1569                         "onmouseover" => 
"2", 
 
 1577                         "outDegree=" => 
"2", 
 
 1605                         "right-margin=" => 
"2", 
 
 1615                         "scrolling=" => 
"2", 
 
 1630                         "space-after=" => 
"2", 
 
 1631                         "space-before=" => 
"2", 
 
 1636                         "standalone=" => 
"2", 
 
 1639                         "start-indent=" => 
"2", 
 
 1648                         "targetEnd=" => 
"2", 
 
 1651                         "targOrder=" => 
"2", 
 
 1655                         "text-align=" => 
"2", 
 
 1662                         "topmargin=" => 
"2", 
 
 1708                         "<AttributeType" => 
"4", 
 
 1709                         "</AttributeType>" => 
"4", 
 
 1710                         "<ElementType" => 
"4", 
 
 1711                         "</ElementType>" => 
"4", 
 
 1714                         "<attribute" => 
"5", 
 
 1715                         "<attribute>" => 
"5", 
 
 1716                         "</attribute>" => 
"5", 
 
 1719                         "</element>" => 
"6", 
 
 1720                         "/element>" => 
"6");
 
 1729 $this->linkscripts      = array(
 
 1735                         "6" => 
"donothing");