2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
 
    4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
 
   20 $this->colours          = array(
"blue", 
"purple");
 
   21 $this->quotecolour              = 
"blue";
 
   22 $this->blockcommentcolour       = 
"green";
 
   23 $this->linecommentcolour        = 
"green";
 
   27 $this->indent                   = array(
"{", 
"if", 
"else", 
"repeat", 
"selectdo", 
"selectempty", 
"selecteos", 
"while", 
"for", 
"case", 
"dllusage");
 
   28 $this->unindent                 = array(
"}", 
"endif", 
"endselect", 
"endwhile", 
"endfor", 
"endcase", 
"until", 
"enddllusage");
 
   32 $this->stringchars              = array();
 
   33 $this->delimiters               = array(
"~", 
"!", 
"@", 
"%", 
"^", 
"&", 
"*", 
"(", 
")", 
"-", 
"+", 
"=", 
"|", 
"\\", 
"/", 
"{", 
"}", 
"[", 
"]", 
":", 
";", 
"\"", 
"'", 
"<", 
">", 
" ", 
",", 
"      ", 
"?");
 
   38 $this->linecommenton            = array(
"|");
 
   39 $this->blockcommenton           = array(
"dllusage");
 
   40 $this->blockcommentoff          = array(
"endusage");
 
   44 $this->keywords                 = array(
 
  110                         "selectempty" => 
"1", 
 
  112                         "selecterror" => 
"1", 
 
  122                         "transaction" => 
"1", 
 
  147                         "AbstractMethodError" => 
"2", 
 
  148                         "AccessException" => 
"2", 
 
  151                         "AclNotFoundException" => 
"2", 
 
  152                         "ActionEvent" => 
"2", 
 
  153                         "ActionListener" => 
"2", 
 
  155                         "AdjustmentEvent" => 
"2", 
 
  156                         "AdjustmentListener" => 
"2", 
 
  158                         "AlreadyBoundException" => 
"2", 
 
  160                         "AppletContext" => 
"2", 
 
  162                         "AreaAveragingScaleFilter" => 
"2", 
 
  163                         "ArithmeticException" => 
"2", 
 
  165                         "ArrayIndexOutOfBoundsException" => 
"2", 
 
  166                         "ArrayStoreException" => 
"2", 
 
  170                         "AWTEventMulticaster" => 
"2", 
 
  171                         "AWTException" => 
"2", 
 
  172                         "BeanDescriptor" => 
"2", 
 
  177                         "BindException" => 
"2", 
 
  180                         "BorderLayout" => 
"2", 
 
  181                         "BreakIterator" => 
"2", 
 
  182                         "BufferedInputStream" => 
"2", 
 
  183                         "BufferedOutputStream" => 
"2", 
 
  184                         "BufferedReader" => 
"2", 
 
  185                         "BufferedWriter" => 
"2", 
 
  189                         "ByteArrayInputStream" => 
"2", 
 
  190                         "ByteArrayOutputStream" => 
"2", 
 
  192                         "CallableStatement" => 
"2", 
 
  193                         "CanvasCanvasPeer" => 
"2", 
 
  194                         "Certificate" => 
"2", 
 
  196                         "CharacterIterator" => 
"2", 
 
  197                         "CharArrayReader" => 
"2", 
 
  198                         "CharArrayWriter" => 
"2", 
 
  199                         "CharConversionException" => 
"2", 
 
  201                         "CheckboxGroup" => 
"2", 
 
  202                         "CheckboxMenuItem" => 
"2", 
 
  203                         "CheckboxMenuItemPeer" => 
"2", 
 
  204                         "CheckboxPeer" => 
"2", 
 
  205                         "CheckedInputStream" => 
"2", 
 
  206                         "CheckedOutputStream" => 
"2", 
 
  209                         "ChoiceFormat" => 
"2", 
 
  212                         "ClassCastException" => 
"2", 
 
  213                         "ClassCircularityError" => 
"2", 
 
  214                         "ClassFormatError" => 
"2", 
 
  215                         "ClassLoader" => 
"2", 
 
  216                         "ClassNotFoundException" => 
"2", 
 
  218                         "ClipboardOwner" => 
"2", 
 
  220                         "CloneNotSupportedException" => 
"2", 
 
  221                         "CollationElementIterator" => 
"2", 
 
  222                         "CollationKey" => 
"2", 
 
  228                         "ComponentAdapter" => 
"2", 
 
  229                         "ComponentEvent" => 
"2", 
 
  230                         "ComponentListener" => 
"2", 
 
  231                         "ComponentPeer" => 
"2", 
 
  232                         "ConnectException" => 
"2", 
 
  233                         "ConnectIOException" => 
"2", 
 
  235                         "Constructor" => 
"2", 
 
  237                         "ContainerAdapter" => 
"2", 
 
  238                         "ContainerEvent" => 
"2", 
 
  239                         "ContainerListener" => 
"2", 
 
  240                         "ContainerPeer" => 
"2", 
 
  241                         "ContentHandler" => 
"2", 
 
  242                         "ContentHandlerFactory" => 
"2", 
 
  244                         "CropImageFilter" => 
"2", 
 
  248                         "DatabaseMetaData" => 
"2", 
 
  250                         "DataFormatException" => 
"2", 
 
  251                         "DatagramPacket" => 
"2", 
 
  252                         "DatagramSocket" => 
"2", 
 
  253                         "DatagramSocketImpl" => 
"2", 
 
  255                         "DataInputStream" => 
"2", 
 
  257                         "DataOutputStream" => 
"2", 
 
  258                         "DataTruncation" => 
"2", 
 
  261                         "DateFormatSymbols" => 
"2", 
 
  262                         "DecimalFormat" => 
"2", 
 
  263                         "DecimalFormatSymbols" => 
"2", 
 
  265                         "DeflaterOutputStream" => 
"2", 
 
  270                         "DigestException" => 
"2", 
 
  271                         "DigestInputStream" => 
"2", 
 
  272                         "DigestOutputStream" => 
"2", 
 
  274                         "DirectColorModel" => 
"2", 
 
  276                         "DriverManager" => 
"2", 
 
  277                         "DriverPropertyInfo" => 
"2", 
 
  279                         "DSAKeyPairGenerator" => 
"2", 
 
  281                         "DSAPrivateKey" => 
"2", 
 
  282                         "DSAPublicKey" => 
"2", 
 
  283                         "EmptyStackException" => 
"2", 
 
  284                         "Enumeration" => 
"2", 
 
  285                         "EOFException" => 
"2", 
 
  288                         "EventListener" => 
"2", 
 
  289                         "EventObject" => 
"2", 
 
  291                         "EventSetDescriptor" => 
"2", 
 
  293                         "ExceptionInInitializerError" => 
"2", 
 
  294                         "ExportException" => 
"2", 
 
  295                         "FeatureDescriptor" => 
"2", 
 
  297                         "FieldPosition" => 
"2", 
 
  299                         "FileDescriptor" => 
"2", 
 
  301                         "FileDialogPeer" => 
"2", 
 
  302                         "FileInputStream" => 
"2", 
 
  303                         "FilenameFilter" => 
"2", 
 
  304                         "FileNameMap" => 
"2", 
 
  305                         "FileNotFoundException" => 
"2", 
 
  306                         "FileOutputStream" => 
"2", 
 
  309                         "FilteredImageSource" => 
"2", 
 
  310                         "FilterInputStream" => 
"2", 
 
  311                         "FilterOutputStream" => 
"2", 
 
  312                         "FilterReader" => 
"2", 
 
  313                         "FilterWriter" => 
"2", 
 
  316                         "FocusAdapter" => 
"2", 
 
  318                         "FocusListener" => 
"2", 
 
  320                         "FontMetrics" => 
"2", 
 
  326                         "GregorianCalendar" => 
"2", 
 
  327                         "GridBagConstraints" => 
"2", 
 
  328                         "GridBagLayout" => 
"2", 
 
  331                         "GZIPInputStream" => 
"2", 
 
  332                         "GZIPOutputStream" => 
"2", 
 
  334                         "HttpURLConnection" => 
"2", 
 
  336                         "IdentityScope" => 
"2", 
 
  337                         "IllegalAccessError" => 
"2", 
 
  338                         "IllegalAccessException" => 
"2", 
 
  339                         "IllegalArgumentException" => 
"2", 
 
  340                         "IllegalComponentStateException" => 
"2", 
 
  341                         "IllegalMonitorStateException" => 
"2", 
 
  342                         "IllegalStateException" => 
"2", 
 
  343                         "IllegalThreadStateException" => 
"2", 
 
  345                         "ImageConsumer" => 
"2", 
 
  346                         "ImageFilter" => 
"2", 
 
  347                         "ImageObserver" => 
"2", 
 
  348                         "ImageProducer" => 
"2", 
 
  349                         "IncompatibleClassChangeError" => 
"2", 
 
  350                         "IndexColorModel" => 
"2", 
 
  351                         "IndexedPropertyDescriptor" => 
"2", 
 
  352                         "IndexOutOfBoundsException" => 
"2", 
 
  353                         "InetAddress" => 
"2", 
 
  355                         "InflaterInputStream" => 
"2", 
 
  357                         "InputStream" => 
"2", 
 
  358                         "InputStreamReader" => 
"2", 
 
  360                         "InstantiationError" => 
"2", 
 
  361                         "InstantiationException" => 
"2", 
 
  363                         "InternalError" => 
"2", 
 
  364                         "InterruptedException" => 
"2", 
 
  365                         "InterruptedIOException" => 
"2", 
 
  366                         "IntrospectionException" => 
"2", 
 
  367                         "Introspector" => 
"2", 
 
  368                         "InvalidClassException" => 
"2", 
 
  369                         "InvalidKeyException" => 
"2", 
 
  370                         "InvalidObjectException" => 
"2", 
 
  371                         "InvalidParameterException" => 
"2", 
 
  372                         "InvocationTargetException" => 
"2", 
 
  373                         "IOException" => 
"2", 
 
  375                         "ItemListener" => 
"2", 
 
  376                         "ItemSelectable" => 
"2", 
 
  380                         "KeyException" => 
"2", 
 
  381                         "KeyListener" => 
"2", 
 
  382                         "KeyManagementException" => 
"2", 
 
  384                         "KeyPairGenerator" => 
"2", 
 
  387                         "LastOwnerException" => 
"2", 
 
  388                         "LayoutManager" => 
"2", 
 
  389                         "LayoutManager2" => 
"2", 
 
  391                         "LightweightPeer" => 
"2", 
 
  392                         "LineNumberInputStream" => 
"2", 
 
  393                         "LineNumberReader" => 
"2", 
 
  394                         "LinkageError" => 
"2", 
 
  397                         "ListResourceBundle" => 
"2", 
 
  398                         "LoaderHandler" => 
"2", 
 
  400                         "LocateRegistry" => 
"2", 
 
  402                         "MalformedURLException" => 
"2", 
 
  403                         "MarshalException" => 
"2", 
 
  405                         "MediaTracker" => 
"2", 
 
  407                         "MemoryImageSource" => 
"2", 
 
  410                         "MenuBarPeer" => 
"2", 
 
  411                         "MenuComponent" => 
"2", 
 
  412                         "MenuComponentPeer" => 
"2", 
 
  413                         "MenuContainer" => 
"2", 
 
  415                         "MenuItemPeer" => 
"2", 
 
  417                         "MenuShortcut" => 
"2", 
 
  418                         "MessageDigest" => 
"2", 
 
  419                         "MessageFormat" => 
"2", 
 
  421                         "MethodDescriptor" => 
"2", 
 
  422                         "MissingResourceException" => 
"2", 
 
  424                         "MouseAdapter" => 
"2", 
 
  426                         "MouseListener" => 
"2", 
 
  427                         "MouseMotionAdapter" => 
"2", 
 
  428                         "MouseMotionListener" => 
"2", 
 
  429                         "MulticastSocket" => 
"2", 
 
  431                         "NegativeArraySizeException" => 
"2", 
 
  432                         "NoClassDefFoundError" => 
"2", 
 
  433                         "NoRouteToHostException" => 
"2", 
 
  434                         "NoSuchAlgorithmException" => 
"2", 
 
  435                         "NoSuchElementException" => 
"2", 
 
  436                         "NoSuchFieldError" => 
"2", 
 
  437                         "NoSuchFieldException" => 
"2", 
 
  438                         "NoSuchMethodError" => 
"2", 
 
  439                         "NoSuchMethodException" => 
"2", 
 
  440                         "NoSuchObjectException" => 
"2", 
 
  441                         "NoSuchProviderException" => 
"2", 
 
  442                         "NotActiveException" => 
"2", 
 
  443                         "NotBoundException" => 
"2", 
 
  444                         "NotOwnerException" => 
"2", 
 
  445                         "NotSerializableException" => 
"2", 
 
  446                         "NullPointerException" => 
"2", 
 
  448                         "NumberFormat" => 
"2", 
 
  449                         "NumberFormatException" => 
"2", 
 
  451                         "ObjectInput" => 
"2", 
 
  452                         "ObjectInputStream" => 
"2", 
 
  453                         "ObjectInputValidation" => 
"2", 
 
  454                         "ObjectOutput" => 
"2", 
 
  455                         "ObjectOutputStream" => 
"2", 
 
  456                         "ObjectStreamClass" => 
"2", 
 
  457                         "ObjectStreamException" => 
"2", 
 
  462                         "OptionalDataException" => 
"2", 
 
  463                         "OutOfMemoryError" => 
"2", 
 
  464                         "OutputStream" => 
"2", 
 
  465                         "OutputStreamWriter" => 
"2", 
 
  470                         "ParameterDescriptor" => 
"2", 
 
  471                         "ParseException" => 
"2", 
 
  472                         "ParsePosition" => 
"2", 
 
  474                         "PipedInputStream" => 
"2", 
 
  475                         "PipedOutputStream" => 
"2", 
 
  476                         "PipedReader" => 
"2", 
 
  477                         "PipedWriter" => 
"2", 
 
  478                         "PixelGrabber" => 
"2", 
 
  482                         "PopupMenuPeer" => 
"2", 
 
  483                         "PreparedStatement" => 
"2", 
 
  485                         "PrintGraphics" => 
"2", 
 
  487                         "PrintStream" => 
"2", 
 
  488                         "PrintWriter" => 
"2", 
 
  492                         "PropertyChangeEvent" => 
"2", 
 
  493                         "PropertyChangeListener" => 
"2", 
 
  494                         "PropertyChangeSupport" => 
"2", 
 
  495                         "PropertyDescriptor" => 
"2", 
 
  496                         "PropertyEditor" => 
"2", 
 
  497                         "PropertyEditorManager" => 
"2", 
 
  498                         "PropertyEditorSupport" => 
"2", 
 
  499                         "PropertyResourceBundle" => 
"2", 
 
  500                         "PropertyVetoException" => 
"2", 
 
  501                         "ProtocolException" => 
"2", 
 
  503                         "ProviderException" => 
"2", 
 
  505                         "PushbackInputStream" => 
"2", 
 
  506                         "PushbackReader" => 
"2", 
 
  508                         "RandomAccessFile" => 
"2", 
 
  510                         "RectangleRegistry" => 
"2", 
 
  511                         "RegistryHandler" => 
"2", 
 
  514                         "RemoteException" => 
"2", 
 
  515                         "RemoteObject" => 
"2", 
 
  517                         "RemoteServer" => 
"2", 
 
  519                         "ReplicateScaleFilter" => 
"2", 
 
  520                         "ResourceBundle" => 
"2", 
 
  522                         "ResultSetMetaData" => 
"2", 
 
  523                         "RGBImageFilter" => 
"2", 
 
  524                         "RMIClassLoader" => 
"2", 
 
  525                         "RMIFailureHandler" => 
"2", 
 
  526                         "RMISecurityException" => 
"2", 
 
  527                         "RMISecurityManager" => 
"2", 
 
  528                         "RMISocketFactory" => 
"2", 
 
  529                         "RuleBasedCollator" => 
"2", 
 
  532                         "RuntimeException" => 
"2", 
 
  534                         "ScrollbarPeer" => 
"2", 
 
  536                         "ScrollPanePeer" => 
"2", 
 
  537                         "SecureRandom" => 
"2", 
 
  539                         "SecurityException" => 
"2", 
 
  540                         "SecurityManager" => 
"2", 
 
  541                         "SequenceInputStream" => 
"2", 
 
  542                         "Serializable" => 
"2", 
 
  543                         "ServerCloneException" => 
"2", 
 
  544                         "ServerError" => 
"2", 
 
  545                         "ServerException" => 
"2", 
 
  546                         "ServerNotActiveException" => 
"2", 
 
  548                         "ServerRuntimeException" => 
"2", 
 
  549                         "ServerSocket" => 
"2", 
 
  553                         "SignatureException" => 
"2", 
 
  555                         "SimpleBeanInfo" => 
"2", 
 
  556                         "SimpleDateFormat" => 
"2", 
 
  557                         "SimpleTimeZone" => 
"2", 
 
  559                         "SkeletonMismatchException" => 
"2", 
 
  560                         "SkeletonNotFoundException" => 
"2", 
 
  562                         "SocketException" => 
"2", 
 
  564                         "SocketImplFactory" => 
"2", 
 
  565                         "SocketSecurityException" => 
"2", 
 
  566                         "SQLException" => 
"2", 
 
  569                         "StackOverflowError" => 
"2", 
 
  571                         "StreamCorruptedException" => 
"2", 
 
  572                         "StreamTokenizer" => 
"2", 
 
  573                         "StringBuffer" => 
"2", 
 
  574                         "StringBufferInputStream" => 
"2", 
 
  575                         "StringCharacterIterator" => 
"2", 
 
  576                         "StringIndexOutOfBoundsException" => 
"2", 
 
  577                         "StringReader" => 
"2", 
 
  578                         "StringSelection" => 
"2", 
 
  579                         "StringTokenizer" => 
"2", 
 
  580                         "StringWriter" => 
"2", 
 
  581                         "StubNotFoundException" => 
"2", 
 
  582                         "SyncFailedException" => 
"2", 
 
  584                         "SystemColor" => 
"2", 
 
  586                         "TextAreaPeer" => 
"2", 
 
  587                         "TextComponent" => 
"2", 
 
  588                         "TextComponentPeer" => 
"2", 
 
  591                         "TextFieldPeer" => 
"2", 
 
  592                         "TextListener" => 
"2", 
 
  594                         "ThreadDeath" => 
"2", 
 
  595                         "ThreadGroup" => 
"2", 
 
  601                         "TooManyListenersException" => 
"2", 
 
  602                         "Transferable" => 
"2", 
 
  605                         "UnexpectedException" => 
"2", 
 
  606                         "UnicastRemoteObject" => 
"2", 
 
  607                         "UnknownError" => 
"2", 
 
  608                         "UnknownHostException" => 
"2", 
 
  609                         "UnknownServiceException" => 
"2", 
 
  610                         "UnmarshalException" => 
"2", 
 
  611                         "Unreferenced" => 
"2", 
 
  612                         "UnsatisfiedLinkError" => 
"2", 
 
  613                         "UnsupportedEncodingException" => 
"2", 
 
  614                         "UnsupportedFlavorException" => 
"2", 
 
  616                         "URLConnection" => 
"2", 
 
  618                         "URLStreamHandler" => 
"2", 
 
  619                         "URLStreamHandlerFactory" => 
"2", 
 
  620                         "UTFDataFormatException" => 
"2", 
 
  622                         "VerifyError" => 
"2", 
 
  623                         "VetoableChangeListener" => 
"2", 
 
  624                         "VetoableChangeSupport" => 
"2", 
 
  625                         "VirtualMachineError" => 
"2", 
 
  629                         "WindowAdapter" => 
"2", 
 
  630                         "WindowEvent" => 
"2", 
 
  631                         "WindowListener" => 
"2", 
 
  633                         "WriteAbortedException" => 
"2", 
 
  636                         "ZipException" => 
"2", 
 
  638                         "ZipInputStream" => 
"2", 
 
  639                         "ZipOutputStream" => 
"2");
 
  648 $this->linkscripts      = array(