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(
 
   55                         "aimConstraint" => 
"2", 
 
   59                         "alignSurface" => 
"2", 
 
   60                         "ambientLight" => 
"2", 
 
   61                         "angleBetween" => 
"2", 
 
   62                         "animCurveEditor" => 
"2", 
 
   66                         "arcLenDimContext" => 
"2", 
 
   67                         "arcLengthDimension" => 
"2", 
 
   70                         "assignCommand" => 
"2", 
 
   71                         "assignInputDevice" => 
"2", 
 
   73                         "attachDeviceAttr" => 
"2", 
 
   74                         "attachSurface" => 
"2", 
 
   75                         "attrColorSliderGrp" => 
"2", 
 
   76                         "attrCompatibility" => 
"2", 
 
   77                         "attrEnumOptionMenu" => 
"2", 
 
   78                         "attrEnumOptionMenuGrp" => 
"2", 
 
   79                         "attrFieldGrp" => 
"2", 
 
   80                         "attrFieldSliderGrp" => 
"2", 
 
   81                         "attrNavigationControlGrp" => 
"2", 
 
   82                         "attributeQuery" => 
"2", 
 
   83                         "autoKeyframe" => 
"2", 
 
   86                         "bakeSimulation" => 
"2", 
 
   93                         "blendShapeEditor" => 
"2", 
 
   94                         "blendShapePanel" => 
"2", 
 
   95                         "blendTwoAttr" => 
"2", 
 
  100                         "buildBookmarkMenu" => 
"2", 
 
  101                         "buildKeyframeMenu" => 
"2", 
 
  103                         "buttonManip" => 
"2", 
 
  106                         "canCreateManip" => 
"2", 
 
  110                         "checkBoxGrp" => 
"2", 
 
  113                         "circularFillet" => 
"2", 
 
  115                         "closeSurface" => 
"2", 
 
  120                         "colorEditor" => 
"2", 
 
  122                         "colorIndexSliderGrp" => 
"2", 
 
  123                         "colorSliderButtonGrp" => 
"2", 
 
  124                         "colorSliderGrp" => 
"2", 
 
  125                         "columnLayout" => 
"2", 
 
  126                         "commandEcho" => 
"2", 
 
  127                         "commandLine" => 
"2", 
 
  128                         "commandPort" => 
"2", 
 
  129                         "commonPaintCtx" => 
"2", 
 
  132                         "confirmDialog" => 
"2", 
 
  133                         "connectAttr" => 
"2", 
 
  134                         "connectControl" => 
"2", 
 
  135                         "connectDynamic" => 
"2", 
 
  136                         "connectJoint" => 
"2", 
 
  137                         "connectionInfo" => 
"2", 
 
  139                         "constructionHistory" => 
"2", 
 
  140                         "contextInfo" => 
"2", 
 
  142                         "convertSolidTx" => 
"2", 
 
  143                         "convertUnit" => 
"2", 
 
  145                         "createDrawCtx" => 
"2", 
 
  146                         "createEditor" => 
"2", 
 
  149                         "ctxCompletion" => 
"2", 
 
  150                         "ctxEditMode" => 
"2", 
 
  151                         "ctxTraverse" => 
"2", 
 
  153                         "currentTime" => 
"2", 
 
  154                         "currentTimeCtx" => 
"2", 
 
  155                         "currentUnit" => 
"2", 
 
  157                         "curveAddPtCtx" => 
"2", 
 
  160                         "curveEditorCtx" => 
"2", 
 
  161                         "curveMoveEPCtx" => 
"2", 
 
  162                         "curveOnSurface" => 
"2", 
 
  163                         "curveSketchCtx" => 
"2", 
 
  167                         "dagObjectHit" => 
"2", 
 
  168                         "defaultNavigation" => 
"2", 
 
  169                         "defineDataServer" => 
"2", 
 
  170                         "defineEditor" => 
"2", 
 
  171                         "defineEditorTemplate" => 
"2", 
 
  172                         "defineVirtualDevice" => 
"2", 
 
  176                         "detachCurve" => 
"2", 
 
  177                         "detachDeviceAttr" => 
"2", 
 
  178                         "detachSurface" => 
"2", 
 
  179                         "devicePanel" => 
"2", 
 
  181                         "directKeyCtx" => 
"2", 
 
  182                         "directionalLight" => 
"2", 
 
  184                         "disconnectAttr" => 
"2", 
 
  185                         "disconnectJoint" => 
"2", 
 
  186                         "displayAffected" => 
"2", 
 
  187                         "displayColor" => 
"2", 
 
  188                         "displayCull" => 
"2", 
 
  189                         "displayLevelOfDetail" => 
"2", 
 
  190                         "displayPref" => 
"2", 
 
  191                         "displayRGBColor" => 
"2", 
 
  192                         "displaySmoothness" => 
"2", 
 
  193                         "displayStats" => 
"2", 
 
  194                         "displaySurface" => 
"2", 
 
  195                         "distanceDimContext" => 
"2", 
 
  196                         "distanceDimension" => 
"2", 
 
  199                         "dopeSheetEditor" => 
"2", 
 
  200                         "doubleProfileBirailSurface" => 
"2", 
 
  202                         "draggerContext" => 
"2", 
 
  203                         "dropoffLocator" => 
"2", 
 
  205                         "duplicateCurve" => 
"2", 
 
  209                         "dynExpression" => 
"2", 
 
  210                         "dynParticleCtx" => 
"2", 
 
  211                         "dynRelEdPanel" => 
"2", 
 
  212                         "dynRelEditor" => 
"2", 
 
  213                         "dynamicLoad" => 
"2", 
 
  215                         "editorTemplate" => 
"2", 
 
  218                         "enableDevice" => 
"2", 
 
  219                         "encodeString" => 
"2", 
 
  221                         "evalDeferred" => 
"2", 
 
  224                         "exclusiveLightCheckBox" => 
"2", 
 
  226                         "expressionEditorListen" => 
"2", 
 
  227                         "extendCurve" => 
"2", 
 
  228                         "extendSurface" => 
"2", 
 
  231                         "fileBrowserDialog" => 
"2", 
 
  233                         "filletCurve" => 
"2", 
 
  235                         "filterExpand" => 
"2", 
 
  236                         "findKeyframe" => 
"2", 
 
  241                         "floatFieldGrp" => 
"2", 
 
  242                         "floatScrollBar" => 
"2", 
 
  243                         "floatSlider" => 
"2", 
 
  244                         "floatSliderButtonGrp" => 
"2", 
 
  245                         "floatSliderGrp" => 
"2", 
 
  247                         "flushThumbnailCache" => 
"2", 
 
  251                         "frameLayout" => 
"2", 
 
  252                         "freeFormFillet" => 
"2", 
 
  253                         "geometryConstraint" => 
"2", 
 
  255                         "getClassification" => 
"2", 
 
  256                         "getInputDeviceRange" => 
"2", 
 
  258                         "getParticleAttr" => 
"2", 
 
  260                         "glRenderEditor" => 
"2", 
 
  263                         "graphDollyCtx" => 
"2", 
 
  264                         "graphSelectContext" => 
"2", 
 
  265                         "graphTrackCtx" => 
"2", 
 
  270                         "handleRotateCtx" => 
"2", 
 
  271                         "hardenPointCurve" => 
"2", 
 
  273                         "hardwareRenderPanel" => 
"2", 
 
  280                         "hotkeyCheck" => 
"2", 
 
  283                         "iconTextButton" => 
"2", 
 
  284                         "iconTextCheckBox" => 
"2", 
 
  285                         "iconTextRadioButton" => 
"2", 
 
  286                         "iconTextRadioCollection" => 
"2", 
 
  287                         "iconTextStaticLabel" => 
"2", 
 
  289                         "ikHandleCtx" => 
"2", 
 
  290                         "ikHandleDisplayScale" => 
"2", 
 
  292                         "ikSplineHandleCtx" => 
"2", 
 
  293                         "ikSplineManipCtx" => 
"2", 
 
  295                         "ikSystemInfo" => 
"2", 
 
  298                         "inheritTransform" => 
"2", 
 
  299                         "insertJoint" => 
"2", 
 
  300                         "insertJointCtx" => 
"2", 
 
  301                         "insertKeyCtx" => 
"2", 
 
  302                         "insertKnotCurve" => 
"2", 
 
  303                         "insertKnotSurface" => 
"2", 
 
  306                         "intFieldGrp" => 
"2", 
 
  307                         "intScrollBar" => 
"2", 
 
  309                         "intSliderGrp" => 
"2", 
 
  310                         "internalVar" => 
"2", 
 
  313                         "isConnected" => 
"2", 
 
  317                         "itemFilterAttr" => 
"2", 
 
  318                         "itemFilterRender" => 
"2", 
 
  319                         "itemFilterType" => 
"2", 
 
  321                         "jointCluster" => 
"2", 
 
  323                         "jointDisplayScale" => 
"2", 
 
  324                         "jointLattice" => 
"2", 
 
  328                         "keyframeOutliner" => 
"2", 
 
  329                         "keyframeRegionCurrentTimeCtx" => 
"2", 
 
  330                         "keyframeRegionDirectKeyCtx" => 
"2", 
 
  331                         "keyframeRegionDollyCtx" => 
"2", 
 
  332                         "keyframeRegionInsertKeyCtx" => 
"2", 
 
  333                         "keyframeRegionMoveKeyCtx" => 
"2", 
 
  334                         "keyframeRegionScaleKeyCtx" => 
"2", 
 
  335                         "keyframeRegionSelectKeyCtx" => 
"2", 
 
  336                         "keyframeRegionSetKeyCtx" => 
"2", 
 
  337                         "keyframeRegionTrackCtx" => 
"2", 
 
  338                         "keyframeStats" => 
"2", 
 
  339                         "lastMenuItem" => 
"2", 
 
  341                         "layeredShaderPort" => 
"2", 
 
  343                         "lightListEditor" => 
"2", 
 
  344                         "lightListPanel" => 
"2", 
 
  345                         "listAnimatable" => 
"2", 
 
  347                         "listCameras" => 
"2", 
 
  348                         "listConnections" => 
"2", 
 
  349                         "listDeviceAttachments" => 
"2", 
 
  350                         "listHistory" => 
"2", 
 
  351                         "listInputDeviceAxes" => 
"2", 
 
  352                         "listInputDeviceButtons" => 
"2", 
 
  353                         "listInputDevices" => 
"2", 
 
  354                         "listNodeTypes" => 
"2", 
 
  355                         "listRelatives" => 
"2", 
 
  356                         "listerEditor" => 
"2", 
 
  361                         "lsThroughFilter" => 
"2", 
 
  363                         "makeIdentity" => 
"2", 
 
  365                         "manipMoveContext" => 
"2", 
 
  366                         "manipMoveLimitsCtx" => 
"2", 
 
  367                         "manipOptions" => 
"2", 
 
  368                         "manipRotateContext" => 
"2", 
 
  369                         "manipRotateLimitsCtx" => 
"2", 
 
  370                         "manipScaleContext" => 
"2", 
 
  371                         "manipScaleLimitsCtx" => 
"2", 
 
  375                         "menuBarLayout" => 
"2", 
 
  378                         "messageLine" => 
"2", 
 
  379                         "minimizeApp" => 
"2", 
 
  380                         "mirrorJoint" => 
"2", 
 
  381                         "modelCurrentTimeCtx" => 
"2", 
 
  382                         "modelEditor" => 
"2", 
 
  388                         "multiProfileBirailSurface" => 
"2", 
 
  389                         "nameCommand" => 
"2", 
 
  391                         "newPanelItems" => 
"2", 
 
  393                         "nodeOutliner" => 
"2", 
 
  395                         "normalConstraint" => 
"2", 
 
  398                         "nurbsToPoly" => 
"2", 
 
  399                         "nurbsToPolygonsPref" => 
"2", 
 
  401                         "objectCenter" => 
"2", 
 
  403                         "objectTypeUI" => 
"2", 
 
  404                         "offsetCurve" => 
"2", 
 
  405                         "offsetCurveOnSurface" => 
"2", 
 
  406                         "openMayaPref" => 
"2", 
 
  408                         "optionMenuGrp" => 
"2", 
 
  412                         "orientConstraint" => 
"2", 
 
  413                         "outlinerEditor" => 
"2", 
 
  414                         "outlinerPanel" => 
"2", 
 
  415                         "overrideModifier" => 
"2", 
 
  416                         "palettePort" => 
"2", 
 
  419                         "panelConfiguration" => 
"2", 
 
  420                         "panelHistory" => 
"2", 
 
  421                         "paramDimContext" => 
"2", 
 
  422                         "paramDimension" => 
"2", 
 
  423                         "paramLocator" => 
"2", 
 
  426                         "particleRenderInfo" => 
"2", 
 
  429                         "pathAnimation" => 
"2", 
 
  432                         "performanceOptions" => 
"2", 
 
  439                         "playbackOptions" => 
"2", 
 
  442                         "pointConstraint" => 
"2", 
 
  443                         "pointCurveConstraint" => 
"2", 
 
  445                         "pointOnCurve" => 
"2", 
 
  446                         "pointOnSurface" => 
"2", 
 
  447                         "poleVectorConstraint" => 
"2", 
 
  450                         "polyChipOff" => 
"2", 
 
  451                         "polyCloseBorder" => 
"2", 
 
  452                         "polyCollapseEdge" => 
"2", 
 
  453                         "polyCollapseFacet" => 
"2", 
 
  455                         "polyCreateFacet" => 
"2", 
 
  457                         "polyCylinder" => 
"2", 
 
  458                         "polyCylindricalProjection" => 
"2", 
 
  459                         "polyDelEdge" => 
"2", 
 
  460                         "polyDelFacet" => 
"2", 
 
  461                         "polyDelVertex" => 
"2", 
 
  462                         "polyEvaluate" => 
"2", 
 
  463                         "polyExtrudeFacet" => 
"2", 
 
  464                         "polyInstallAction" => 
"2", 
 
  468                         "polyMergeEdge" => 
"2", 
 
  469                         "polyMergeFacet" => 
"2", 
 
  470                         "polyMoveEdge" => 
"2", 
 
  471                         "polyMoveFacet" => 
"2", 
 
  472                         "polyMoveFacetUV" => 
"2", 
 
  474                         "polyMoveVertex" => 
"2", 
 
  476                         "polyOptions" => 
"2", 
 
  477                         "polyPlanarProjection" => 
"2", 
 
  480                         "polySelectConstraint" => 
"2", 
 
  481                         "polySelectConstraintMonitor" => 
"2", 
 
  482                         "polySeparate" => 
"2", 
 
  484                         "polySoftEdge" => 
"2", 
 
  486                         "polySphericalProjection" => 
"2", 
 
  488                         "polySubdivideEdge" => 
"2", 
 
  489                         "polySubdivideFacet" => 
"2", 
 
  490                         "polySuperCtx" => 
"2", 
 
  492                         "polyTriangulate" => 
"2", 
 
  495                         "projFileViewer" => 
"2", 
 
  496                         "projectCurve" => 
"2", 
 
  497                         "projectLight" => 
"2", 
 
  498                         "projectLightEditor" => 
"2", 
 
  499                         "projectTangent" => 
"2", 
 
  500                         "projectionContext" => 
"2", 
 
  501                         "projectionManip" => 
"2", 
 
  502                         "promptDialog" => 
"2", 
 
  508                         "radioButton" => 
"2", 
 
  509                         "radioButtonGrp" => 
"2", 
 
  510                         "radioCollection" => 
"2", 
 
  511                         "radioMenuItemCollection" => 
"2", 
 
  512                         "rampColorPort" => 
"2", 
 
  513                         "rangeControl" => 
"2", 
 
  515                         "rebuildCurve" => 
"2", 
 
  516                         "rebuildSurface" => 
"2", 
 
  518                         "recordDevice" => 
"2", 
 
  521                         "reloadImage" => 
"2", 
 
  522                         "removeJoint" => 
"2", 
 
  523                         "removeMultiInstance" => 
"2", 
 
  527                         "renderGlobalsNode" => 
"2", 
 
  529                         "renderManip" => 
"2", 
 
  530                         "renderPartition" => 
"2", 
 
  531                         "renderQualityNode" => 
"2", 
 
  532                         "renderThumbnailUpdate" => 
"2", 
 
  533                         "renderWindowEditor" => 
"2", 
 
  534                         "renderWindowSelectContext" => 
"2", 
 
  536                         "reorderDeformers" => 
"2", 
 
  540                         "resolutionNode" => 
"2", 
 
  541                         "reverseCurve" => 
"2", 
 
  542                         "reverseSurface" => 
"2", 
 
  545                         "rigidSolver" => 
"2", 
 
  549                         "rowColumnLayout" => 
"2", 
 
  551                         "saveAllShelves" => 
"2", 
 
  553                         "saveInitialState" => 
"2", 
 
  557                         "saveToolSettings" => 
"2", 
 
  559                         "scaleConstraint" => 
"2", 
 
  561                         "scaleKeyCtx" => 
"2", 
 
  562                         "sceneUIReplacement" => 
"2", 
 
  563                         "sceneViewer" => 
"2", 
 
  565                         "scriptedPanel" => 
"2", 
 
  566                         "scriptedPanelType" => 
"2", 
 
  567                         "scrollField" => 
"2", 
 
  568                         "scrollLayout" => 
"2", 
 
  571                         "selectContext" => 
"2", 
 
  573                         "selectKeyCtx" => 
"2", 
 
  575                         "selectPaintCtx" => 
"2", 
 
  577                         "selectPriority" => 
"2", 
 
  579                         "selectedLine" => 
"2", 
 
  580                         "selectedNodes" => 
"2", 
 
  581                         "selectionConnection" => 
"2", 
 
  584                         "setAttrMapping" => 
"2", 
 
  585                         "setDefaultShadingGroup" => 
"2", 
 
  586                         "setDrivenKeyframe" => 
"2", 
 
  590                         "setEscapeCtx" => 
"2", 
 
  592                         "setInfinity" => 
"2", 
 
  593                         "setInputDeviceMapping" => 
"2", 
 
  596                         "setKeyframe" => 
"2", 
 
  598                         "setParticleAttr" => 
"2", 
 
  599                         "setStartupMessage" => 
"2", 
 
  601                         "setUITemplate" => 
"2", 
 
  603                         "shadingConnection" => 
"2", 
 
  604                         "shadingGeometryRelCtx" => 
"2", 
 
  605                         "shadingGroupDialogDaemon" => 
"2", 
 
  606                         "shadingLightRelCtx" => 
"2", 
 
  607                         "shadingNode" => 
"2", 
 
  608                         "shelfButton" => 
"2", 
 
  609                         "shelfLayout" => 
"2", 
 
  610                         "shelfTabLayout" => 
"2", 
 
  613                         "showManipCtx" => 
"2", 
 
  614                         "showSelectionInTitle" => 
"2", 
 
  615                         "showShadingGroupAttrEditor" => 
"2", 
 
  618                         "singleProfileBirailSurface" => 
"2", 
 
  623                         "soundControl" => 
"2", 
 
  624                         "spaceLocator" => 
"2", 
 
  627                         "spotLightPreviewPort" => 
"2", 
 
  628                         "spreadSheetEditor" => 
"2", 
 
  632                         "stitchSurface" => 
"2", 
 
  633                         "stitchSurfacePoints" => 
"2", 
 
  636                         "surfacePaintCtx" => 
"2", 
 
  637                         "surfaceShaderList" => 
"2", 
 
  638                         "swatchDisplayPort" => 
"2", 
 
  639                         "symbolButton" => 
"2", 
 
  640                         "symbolCheckBox" => 
"2", 
 
  642                         "tangentConstraint" => 
"2", 
 
  643                         "texManipContext" => 
"2", 
 
  644                         "texSelectContext" => 
"2", 
 
  645                         "texWinToolCtx" => 
"2", 
 
  649                         "textFieldButtonGrp" => 
"2", 
 
  650                         "textFieldGrp" => 
"2", 
 
  651                         "textScrollList" => 
"2", 
 
  652                         "texturePlacementContext" => 
"2", 
 
  653                         "textureWindow" => 
"2", 
 
  654                         "timeControl" => 
"2", 
 
  658                         "toggleWindowVisibility" => 
"2", 
 
  661                         "toolCollection" => 
"2", 
 
  662                         "toolDropped" => 
"2", 
 
  663                         "toolHasOptions" => 
"2", 
 
  664                         "toolPropertyWindow" => 
"2", 
 
  667                         "transformLimits" => 
"2", 
 
  674                         "unassignInputDevice" => 
"2", 
 
  679                         "unloadPlugin" => 
"2", 
 
  683                         "userPaintCtx" => 
"2", 
 
  684                         "valuePaintCtx" => 
"2", 
 
  685                         "view2dToolCtx" => 
"2", 
 
  687                         "viewClipPlane" => 
"2", 
 
  698                         "wireContext" => 
"2", 
 
  701                         "wrinkleContext" => 
"2", 
 
  707                         "-annotation" => 
"3", 
 
  712                         "-columnAttach" => 
"3", 
 
  713                         "-columnWidth" => 
"3", 
 
  717                         "-curveParameterPoint" => 
"3", 
 
  720                         "-dragMenuCommand" => 
"3", 
 
  729                         "-fieldMaxValue" => 
"3", 
 
  730                         "-fieldMinValue" => 
"3", 
 
  733                         "-imagePlane" => 
"3", 
 
  736                         "-jointPivot" => 
"3", 
 
  739                         "-latticePoint" => 
"3", 
 
  740                         "-localRotationAxis" => 
"3", 
 
  749                         "-polymeshEdge" => 
"3", 
 
  750                         "-polymeshVertex" => 
"3", 
 
  754                         "-rotatePivot" => 
"3", 
 
  755                         "-rowSpacing" => 
"3", 
 
  757                         "-scalePivot" => 
"3", 
 
  758                         "-selectHandle" => 
"3", 
 
  762                         "-surfaceEdge" => 
"3", 
 
  763                         "-surfaceParameterPoint" => 
"3", 
 
  775 $this->linkscripts      = array(