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(
"{",
"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(
115 "selectempty" =>
"1",
117 "selecterror" =>
"1",
127 "transaction" =>
"1",
155 "db.retry.point" =>
"2",
156 "commit.transaction" =>
"2",
157 "abort.transaction" =>
"2",
158 "AbstractMethodError" =>
"3",
159 "AccessException" =>
"3",
162 "AclNotFoundException" =>
"3",
163 "ActionEvent" =>
"3",
164 "ActionListener" =>
"3",
166 "AdjustmentEvent" =>
"3",
167 "AdjustmentListener" =>
"3",
169 "AlreadyBoundException" =>
"3",
171 "AppletContext" =>
"3",
173 "AreaAveragingScaleFilter" =>
"3",
174 "ArithmeticException" =>
"3",
176 "ArrayIndexOutOfBoundsException" =>
"3",
177 "ArrayStoreException" =>
"3",
181 "AWTEventMulticaster" =>
"3",
182 "AWTException" =>
"3",
183 "BeanDescriptor" =>
"3",
188 "BindException" =>
"3",
191 "BorderLayout" =>
"3",
192 "BreakIterator" =>
"3",
193 "BufferedInputStream" =>
"3",
194 "BufferedOutputStream" =>
"3",
195 "BufferedReader" =>
"3",
196 "BufferedWriter" =>
"3",
200 "ByteArrayInputStream" =>
"3",
201 "ByteArrayOutputStream" =>
"3",
203 "CallableStatement" =>
"3",
204 "CanvasCanvasPeer" =>
"3",
205 "Certificate" =>
"3",
207 "CharacterIterator" =>
"3",
208 "CharArrayReader" =>
"3",
209 "CharArrayWriter" =>
"3",
210 "CharConversionException" =>
"3",
212 "CheckboxGroup" =>
"3",
213 "CheckboxMenuItem" =>
"3",
214 "CheckboxMenuItemPeer" =>
"3",
215 "CheckboxPeer" =>
"3",
216 "CheckedInputStream" =>
"3",
217 "CheckedOutputStream" =>
"3",
220 "ChoiceFormat" =>
"3",
223 "ClassCastException" =>
"3",
224 "ClassCircularityError" =>
"3",
225 "ClassFormatError" =>
"3",
226 "ClassLoader" =>
"3",
227 "ClassNotFoundException" =>
"3",
229 "ClipboardOwner" =>
"3",
231 "CloneNotSupportedException" =>
"3",
232 "CollationElementIterator" =>
"3",
233 "CollationKey" =>
"3",
239 "ComponentAdapter" =>
"3",
240 "ComponentEvent" =>
"3",
241 "ComponentListener" =>
"3",
242 "ComponentPeer" =>
"3",
243 "ConnectException" =>
"3",
244 "ConnectIOException" =>
"3",
246 "Constructor" =>
"3",
248 "ContainerAdapter" =>
"3",
249 "ContainerEvent" =>
"3",
250 "ContainerListener" =>
"3",
251 "ContainerPeer" =>
"3",
252 "ContentHandler" =>
"3",
253 "ContentHandlerFactory" =>
"3",
255 "CropImageFilter" =>
"3",
259 "DatabaseMetaData" =>
"3",
261 "DataFormatException" =>
"3",
262 "DatagramPacket" =>
"3",
263 "DatagramSocket" =>
"3",
264 "DatagramSocketImpl" =>
"3",
266 "DataInputStream" =>
"3",
268 "DataOutputStream" =>
"3",
269 "DataTruncation" =>
"3",
272 "DateFormatSymbols" =>
"3",
273 "DecimalFormat" =>
"3",
274 "DecimalFormatSymbols" =>
"3",
276 "DeflaterOutputStream" =>
"3",
281 "DigestException" =>
"3",
282 "DigestInputStream" =>
"3",
283 "DigestOutputStream" =>
"3",
285 "DirectColorModel" =>
"3",
287 "DriverManager" =>
"3",
288 "DriverPropertyInfo" =>
"3",
290 "DSAKeyPairGenerator" =>
"3",
292 "DSAPrivateKey" =>
"3",
293 "DSAPublicKey" =>
"3",
294 "EmptyStackException" =>
"3",
295 "Enumeration" =>
"3",
296 "EOFException" =>
"3",
299 "EventListener" =>
"3",
300 "EventObject" =>
"3",
302 "EventSetDescriptor" =>
"3",
304 "ExceptionInInitializerError" =>
"3",
305 "ExportException" =>
"3",
306 "FeatureDescriptor" =>
"3",
308 "FieldPosition" =>
"3",
310 "FileDescriptor" =>
"3",
312 "FileDialogPeer" =>
"3",
313 "FileInputStream" =>
"3",
314 "FilenameFilter" =>
"3",
315 "FileNameMap" =>
"3",
316 "FileNotFoundException" =>
"3",
317 "FileOutputStream" =>
"3",
320 "FilteredImageSource" =>
"3",
321 "FilterInputStream" =>
"3",
322 "FilterOutputStream" =>
"3",
323 "FilterReader" =>
"3",
324 "FilterWriter" =>
"3",
327 "FocusAdapter" =>
"3",
329 "FocusListener" =>
"3",
331 "FontMetrics" =>
"3",
337 "GregorianCalendar" =>
"3",
338 "GridBagConstraints" =>
"3",
339 "GridBagLayout" =>
"3",
341 "GZIPInputStream" =>
"3",
342 "GZIPOutputStream" =>
"3",
344 "HttpURLConnection" =>
"3",
346 "IdentityScope" =>
"3",
347 "IllegalAccessError" =>
"3",
348 "IllegalAccessException" =>
"3",
349 "IllegalArgumentException" =>
"3",
350 "IllegalComponentStateException" =>
"3",
351 "IllegalMonitorStateException" =>
"3",
352 "IllegalStateException" =>
"3",
353 "IllegalThreadStateException" =>
"3",
355 "ImageConsumer" =>
"3",
356 "ImageFilter" =>
"3",
357 "ImageObserver" =>
"3",
358 "ImageProducer" =>
"3",
359 "IncompatibleClassChangeError" =>
"3",
360 "IndexColorModel" =>
"3",
361 "IndexedPropertyDescriptor" =>
"3",
362 "IndexOutOfBoundsException" =>
"3",
363 "InetAddress" =>
"3",
365 "InflaterInputStream" =>
"3",
367 "InputStream" =>
"3",
368 "InputStreamReader" =>
"3",
370 "InstantiationError" =>
"3",
371 "InstantiationException" =>
"3",
373 "InternalError" =>
"3",
374 "InterruptedException" =>
"3",
375 "InterruptedIOException" =>
"3",
376 "IntrospectionException" =>
"3",
377 "Introspector" =>
"3",
378 "InvalidClassException" =>
"3",
379 "InvalidKeyException" =>
"3",
380 "InvalidObjectException" =>
"3",
381 "InvalidParameterException" =>
"3",
382 "InvocationTargetException" =>
"3",
383 "IOException" =>
"3",
385 "ItemListener" =>
"3",
386 "ItemSelectable" =>
"3",
390 "KeyException" =>
"3",
391 "KeyListener" =>
"3",
392 "KeyManagementException" =>
"3",
394 "KeyPairGenerator" =>
"3",
397 "LastOwnerException" =>
"3",
398 "LayoutManager" =>
"3",
399 "LayoutManager2" =>
"3",
401 "LightweightPeer" =>
"3",
402 "LineNumberInputStream" =>
"3",
403 "LineNumberReader" =>
"3",
404 "LinkageError" =>
"3",
407 "ListResourceBundle" =>
"3",
408 "LoaderHandler" =>
"3",
410 "LocateRegistry" =>
"3",
412 "MalformedURLException" =>
"3",
413 "MarshalException" =>
"3",
415 "MediaTracker" =>
"3",
417 "MemoryImageSource" =>
"3",
420 "MenuBarPeer" =>
"3",
421 "MenuComponent" =>
"3",
422 "MenuComponentPeer" =>
"3",
423 "MenuContainer" =>
"3",
425 "MenuItemPeer" =>
"3",
427 "MenuShortcut" =>
"3",
428 "MessageDigest" =>
"3",
429 "MessageFormat" =>
"3",
431 "MethodDescriptor" =>
"3",
432 "MissingResourceException" =>
"3",
434 "MouseAdapter" =>
"3",
436 "MouseListener" =>
"3",
437 "MouseMotionAdapter" =>
"3",
438 "MouseMotionListener" =>
"3",
439 "MulticastSocket" =>
"3",
441 "NegativeArraySizeException" =>
"3",
442 "NoClassDefFoundError" =>
"3",
443 "NoRouteToHostException" =>
"3",
444 "NoSuchAlgorithmException" =>
"3",
445 "NoSuchElementException" =>
"3",
446 "NoSuchFieldError" =>
"3",
447 "NoSuchFieldException" =>
"3",
448 "NoSuchMethodError" =>
"3",
449 "NoSuchMethodException" =>
"3",
450 "NoSuchObjectException" =>
"3",
451 "NoSuchProviderException" =>
"3",
452 "NotActiveException" =>
"3",
453 "NotBoundException" =>
"3",
454 "NotOwnerException" =>
"3",
455 "NotSerializableException" =>
"3",
456 "NullPointerException" =>
"3",
458 "NumberFormat" =>
"3",
459 "NumberFormatException" =>
"3",
461 "ObjectInput" =>
"3",
462 "ObjectInputStream" =>
"3",
463 "ObjectInputValidation" =>
"3",
464 "ObjectOutput" =>
"3",
465 "ObjectOutputStream" =>
"3",
466 "ObjectStreamClass" =>
"3",
467 "ObjectStreamException" =>
"3",
472 "OptionalDataException" =>
"3",
473 "OutOfMemoryError" =>
"3",
474 "OutputStream" =>
"3",
475 "OutputStreamWriter" =>
"3",
480 "ParameterDescriptor" =>
"3",
481 "ParseException" =>
"3",
482 "ParsePosition" =>
"3",
484 "PipedInputStream" =>
"3",
485 "PipedOutputStream" =>
"3",
486 "PipedReader" =>
"3",
487 "PipedWriter" =>
"3",
488 "PixelGrabber" =>
"3",
492 "PopupMenuPeer" =>
"3",
493 "PreparedStatement" =>
"3",
495 "PrintGraphics" =>
"3",
497 "PrintStream" =>
"3",
498 "PrintWriter" =>
"3",
502 "PropertyChangeEvent" =>
"3",
503 "PropertyChangeListener" =>
"3",
504 "PropertyChangeSupport" =>
"3",
505 "PropertyDescriptor" =>
"3",
506 "PropertyEditor" =>
"3",
507 "PropertyEditorManager" =>
"3",
508 "PropertyEditorSupport" =>
"3",
509 "PropertyResourceBundle" =>
"3",
510 "PropertyVetoException" =>
"3",
511 "ProtocolException" =>
"3",
513 "ProviderException" =>
"3",
515 "PushbackInputStream" =>
"3",
516 "PushbackReader" =>
"3",
518 "RandomAccessFile" =>
"3",
520 "RectangleRegistry" =>
"3",
521 "RegistryHandler" =>
"3",
524 "RemoteException" =>
"3",
525 "RemoteObject" =>
"3",
527 "RemoteServer" =>
"3",
529 "ReplicateScaleFilter" =>
"3",
530 "ResourceBundle" =>
"3",
532 "ResultSetMetaData" =>
"3",
533 "RGBImageFilter" =>
"3",
534 "RMIClassLoader" =>
"3",
535 "RMIFailureHandler" =>
"3",
536 "RMISecurityException" =>
"3",
537 "RMISecurityManager" =>
"3",
538 "RMISocketFactory" =>
"3",
539 "RuleBasedCollator" =>
"3",
542 "RuntimeException" =>
"3",
544 "ScrollbarPeer" =>
"3",
546 "ScrollPanePeer" =>
"3",
547 "SecureRandom" =>
"3",
549 "SecurityException" =>
"3",
550 "SecurityManager" =>
"3",
551 "SequenceInputStream" =>
"3",
552 "Serializable" =>
"3",
553 "ServerCloneException" =>
"3",
554 "ServerError" =>
"3",
555 "ServerException" =>
"3",
556 "ServerNotActiveException" =>
"3",
558 "ServerRuntimeException" =>
"3",
559 "ServerSocket" =>
"3",
563 "SignatureException" =>
"3",
565 "SimpleBeanInfo" =>
"3",
566 "SimpleDateFormat" =>
"3",
567 "SimpleTimeZone" =>
"3",
569 "SkeletonMismatchException" =>
"3",
570 "SkeletonNotFoundException" =>
"3",
572 "SocketException" =>
"3",
574 "SocketImplFactory" =>
"3",
575 "SocketSecurityException" =>
"3",
576 "SQLException" =>
"3",
579 "StackOverflowError" =>
"3",
581 "StreamCorruptedException" =>
"3",
582 "StreamTokenizer" =>
"3",
583 "StringBuffer" =>
"3",
584 "StringBufferInputStream" =>
"3",
585 "StringCharacterIterator" =>
"3",
586 "StringIndexOutOfBoundsException" =>
"3",
587 "StringReader" =>
"3",
588 "StringSelection" =>
"3",
589 "StringTokenizer" =>
"3",
590 "StringWriter" =>
"3",
591 "StubNotFoundException" =>
"3",
592 "SyncFailedException" =>
"3",
594 "SystemColor" =>
"3",
596 "TextAreaPeer" =>
"3",
597 "TextComponent" =>
"3",
598 "TextComponentPeer" =>
"3",
601 "TextFieldPeer" =>
"3",
602 "TextListener" =>
"3",
604 "ThreadDeath" =>
"3",
605 "ThreadGroup" =>
"3",
611 "TooManyListenersException" =>
"3",
612 "Transferable" =>
"3",
615 "UnexpectedException" =>
"3",
616 "UnicastRemoteObject" =>
"3",
617 "UnknownError" =>
"3",
618 "UnknownHostException" =>
"3",
619 "UnknownServiceException" =>
"3",
620 "UnmarshalException" =>
"3",
621 "Unreferenced" =>
"3",
622 "UnsatisfiedLinkError" =>
"3",
623 "UnsupportedEncodingException" =>
"3",
624 "UnsupportedFlavorException" =>
"3",
626 "URLConnection" =>
"3",
628 "URLStreamHandler" =>
"3",
629 "URLStreamHandlerFactory" =>
"3",
630 "UTFDataFormatException" =>
"3",
632 "VerifyError" =>
"3",
633 "VetoableChangeListener" =>
"3",
634 "VetoableChangeSupport" =>
"3",
635 "VirtualMachineError" =>
"3",
639 "WindowAdapter" =>
"3",
640 "WindowEvent" =>
"3",
641 "WindowListener" =>
"3",
643 "WriteAbortedException" =>
"3",
646 "ZipException" =>
"3",
648 "ZipInputStream" =>
"3",
649 "ZipOutputStream" =>
"3",
650 "after.choice:" =>
"4",
651 "after.delete:" =>
"4",
652 "after.display:" =>
"4",
653 "after.field:" =>
"4",
654 "after.form:" =>
"4",
655 "after.input:" =>
"4",
656 "after.program:" =>
"4",
657 "after.read:" =>
"4",
658 "after.rewrite:" =>
"4",
659 "after.skip.delete:" =>
"4",
660 "after.skip.rewrite:" =>
"4",
661 "after.skip.write:" =>
"4",
662 "after.update.db.commit:" =>
"4",
663 "after.write:" =>
"4",
664 "after.zoom:" =>
"4",
665 "before.checks:" =>
"4",
666 "before.choice:" =>
"4",
667 "before.delete:" =>
"4",
668 "before.display:" =>
"4",
669 "before.field:" =>
"4",
670 "before.form:" =>
"4",
671 "before.input:" =>
"4",
672 "before.program:" =>
"4",
673 "before.read:" =>
"4",
674 "before.rewrite:" =>
"4",
675 "before.write:" =>
"4",
676 "before.zoom:" =>
"4",
677 "check.input:" =>
"4",
678 "choice.abort.program:" =>
"4",
679 "choice.add.set:" =>
"4",
680 "choice.bms:" =>
"4",
681 "choice.change.frm:" =>
"4",
682 "choice.change.order:" =>
"4",
683 "choice.cont.process:" =>
"4",
684 "choice.create.job:" =>
"4",
685 "choice.def.find:" =>
"4",
686 "choice.dupl.occur:" =>
"4",
687 "choice.end.program:" =>
"4",
688 "choice.find.data:" =>
"4",
689 "choice.first.frm:" =>
"4",
690 "choice.first.set:" =>
"4",
691 "choice.first.view:" =>
"4",
692 "choice.get.defaults:" =>
"4",
693 "choice.global.copy:" =>
"4",
694 "choice.global.delete:" =>
"4",
695 "choice.interrupt:" =>
"4",
696 "choice.last.frm:" =>
"4",
697 "choice.last.set:" =>
"4",
698 "choice.last.view:" =>
"4",
699 "choice.make.resident:" =>
"4",
700 "choice.mark.delete:" =>
"4",
701 "choice.mark.occur:" =>
"4",
702 "choice.modify.set:" =>
"4",
703 "choice.next.frm:" =>
"4",
704 "choice.next.halfset:" =>
"4",
705 "choice.next.set:" =>
"4",
706 "choice.prev.frm:" =>
"4",
707 "choice.prev.halfset:" =>
"4",
708 "choice.prev.set:" =>
"4",
709 "choice.prev.view:" =>
"4",
710 "choice.print.data:" =>
"4",
711 "choice.recover.set:" =>
"4",
712 "choice.resize.frm:" =>
"4",
713 "choice.restart.input:" =>
"4",
714 "choice.run.job:" =>
"4",
715 "choice.save.defaults:" =>
"4",
716 "choice.start.chart:" =>
"4",
717 "choice.start.query:" =>
"4",
718 "choice.start.set:" =>
"4",
719 "choice.text.manager:" =>
"4",
720 "choice.update.db:" =>
"4",
721 "choice.user.0:" =>
"4",
722 "choice.user.1:" =>
"4",
723 "choice.user.2:" =>
"4",
724 "choice.user.3:" =>
"4",
725 "choice.user.4:" =>
"4",
726 "choice.user.5:" =>
"4",
727 "choice.user.6:" =>
"4",
728 "choice.user.7:" =>
"4",
729 "choice.user.8:" =>
"4",
730 "choice.user.9:" =>
"4",
731 "choice.zoom:" =>
"4",
732 "declaration:" =>
"4",
733 "domain.error:" =>
"4",
735 "field.other:" =>
"4",
749 "form.other:" =>
"4",
751 "init.field:" =>
"4",
753 "main.table.io:" =>
"4",
760 "ref.display:" =>
"4",
762 "when.field.changes:" =>
"4",
763 "zoom.from.all:" =>
"4",
764 "zoom.from.other:" =>
"4",
766 "bms.receive" =>
"5",
767 "bms.add.mask" =>
"5",
768 "bms.receive$" =>
"5",
769 "brw.parse.message" =>
"5",
770 "brw.message.type" =>
"5",
771 "brw.message.argument" =>
"5",
772 "brw.message.content" =>
"5",
773 "brw.start.init" =>
"5",
774 "brw.end.init" =>
"5",
776 "brw.mouse.normal" =>
"5",
777 "brw.mouse.watch" =>
"5",
778 "brw.display" =>
"5",
779 "browser.send" =>
"5",
780 "evt.bms.sender" =>
"5",
781 "dal.start.business.method" =>
"6",
784 "dal.destroy" =>
"6",
785 "dal.set.error.message" =>
"6",
786 "DALHOOKERROR" =>
"6");
795 $this->linkscripts = array(