2 $BEAUT_PATH = realpath(
".") .
"/Services/COPage/syntax_highlight/php";
6 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
24 $this->colours =
array(
"blue",
"purple");
25 $this->quotecolour =
"blue";
26 $this->blockcommentcolour =
"green";
27 $this->linecommentcolour =
"green";
31 $this->indent =
array(
"{",
"if",
"else",
"repeat",
"selectdo",
"selectempty",
"selecteos",
"while",
"for",
"case",
"dllusage");
32 $this->unindent =
array(
"}",
"endif",
"endselect",
"endwhile",
"endfor",
"endcase",
"until",
"enddllusage");
36 $this->stringchars =
array();
37 $this->delimiters =
array(
"~",
"!",
"@",
"%",
"^",
"&",
"*",
"(",
")",
"-",
"+",
"=",
"|",
"\\",
"/",
"{",
"}",
"[",
"]",
":",
";",
"\"",
"'",
"<",
">",
" ",
",",
" ",
"?");
42 $this->linecommenton =
array(
"|");
43 $this->blockcommenton =
array(
"dllusage");
44 $this->blockcommentoff =
array(
"endusage");
48 $this->keywords =
array(
114 "selectempty" =>
"1",
116 "selecterror" =>
"1",
126 "transaction" =>
"1",
151 "AbstractMethodError" =>
"2",
152 "AccessException" =>
"2",
155 "AclNotFoundException" =>
"2",
156 "ActionEvent" =>
"2",
157 "ActionListener" =>
"2",
159 "AdjustmentEvent" =>
"2",
160 "AdjustmentListener" =>
"2",
162 "AlreadyBoundException" =>
"2",
164 "AppletContext" =>
"2",
166 "AreaAveragingScaleFilter" =>
"2",
167 "ArithmeticException" =>
"2",
169 "ArrayIndexOutOfBoundsException" =>
"2",
170 "ArrayStoreException" =>
"2",
174 "AWTEventMulticaster" =>
"2",
175 "AWTException" =>
"2",
176 "BeanDescriptor" =>
"2",
181 "BindException" =>
"2",
184 "BorderLayout" =>
"2",
185 "BreakIterator" =>
"2",
186 "BufferedInputStream" =>
"2",
187 "BufferedOutputStream" =>
"2",
188 "BufferedReader" =>
"2",
189 "BufferedWriter" =>
"2",
193 "ByteArrayInputStream" =>
"2",
194 "ByteArrayOutputStream" =>
"2",
196 "CallableStatement" =>
"2",
197 "CanvasCanvasPeer" =>
"2",
198 "Certificate" =>
"2",
200 "CharacterIterator" =>
"2",
201 "CharArrayReader" =>
"2",
202 "CharArrayWriter" =>
"2",
203 "CharConversionException" =>
"2",
205 "CheckboxGroup" =>
"2",
206 "CheckboxMenuItem" =>
"2",
207 "CheckboxMenuItemPeer" =>
"2",
208 "CheckboxPeer" =>
"2",
209 "CheckedInputStream" =>
"2",
210 "CheckedOutputStream" =>
"2",
213 "ChoiceFormat" =>
"2",
216 "ClassCastException" =>
"2",
217 "ClassCircularityError" =>
"2",
218 "ClassFormatError" =>
"2",
219 "ClassLoader" =>
"2",
220 "ClassNotFoundException" =>
"2",
222 "ClipboardOwner" =>
"2",
224 "CloneNotSupportedException" =>
"2",
225 "CollationElementIterator" =>
"2",
226 "CollationKey" =>
"2",
232 "ComponentAdapter" =>
"2",
233 "ComponentEvent" =>
"2",
234 "ComponentListener" =>
"2",
235 "ComponentPeer" =>
"2",
236 "ConnectException" =>
"2",
237 "ConnectIOException" =>
"2",
239 "Constructor" =>
"2",
241 "ContainerAdapter" =>
"2",
242 "ContainerEvent" =>
"2",
243 "ContainerListener" =>
"2",
244 "ContainerPeer" =>
"2",
245 "ContentHandler" =>
"2",
246 "ContentHandlerFactory" =>
"2",
248 "CropImageFilter" =>
"2",
252 "DatabaseMetaData" =>
"2",
254 "DataFormatException" =>
"2",
255 "DatagramPacket" =>
"2",
256 "DatagramSocket" =>
"2",
257 "DatagramSocketImpl" =>
"2",
259 "DataInputStream" =>
"2",
261 "DataOutputStream" =>
"2",
262 "DataTruncation" =>
"2",
265 "DateFormatSymbols" =>
"2",
266 "DecimalFormat" =>
"2",
267 "DecimalFormatSymbols" =>
"2",
269 "DeflaterOutputStream" =>
"2",
274 "DigestException" =>
"2",
275 "DigestInputStream" =>
"2",
276 "DigestOutputStream" =>
"2",
278 "DirectColorModel" =>
"2",
280 "DriverManager" =>
"2",
281 "DriverPropertyInfo" =>
"2",
283 "DSAKeyPairGenerator" =>
"2",
285 "DSAPrivateKey" =>
"2",
286 "DSAPublicKey" =>
"2",
287 "EmptyStackException" =>
"2",
288 "Enumeration" =>
"2",
289 "EOFException" =>
"2",
292 "EventListener" =>
"2",
293 "EventObject" =>
"2",
295 "EventSetDescriptor" =>
"2",
297 "ExceptionInInitializerError" =>
"2",
298 "ExportException" =>
"2",
299 "FeatureDescriptor" =>
"2",
301 "FieldPosition" =>
"2",
303 "FileDescriptor" =>
"2",
305 "FileDialogPeer" =>
"2",
306 "FileInputStream" =>
"2",
307 "FilenameFilter" =>
"2",
308 "FileNameMap" =>
"2",
309 "FileNotFoundException" =>
"2",
310 "FileOutputStream" =>
"2",
313 "FilteredImageSource" =>
"2",
314 "FilterInputStream" =>
"2",
315 "FilterOutputStream" =>
"2",
316 "FilterReader" =>
"2",
317 "FilterWriter" =>
"2",
320 "FocusAdapter" =>
"2",
322 "FocusListener" =>
"2",
324 "FontMetrics" =>
"2",
330 "GregorianCalendar" =>
"2",
331 "GridBagConstraints" =>
"2",
332 "GridBagLayout" =>
"2",
335 "GZIPInputStream" =>
"2",
336 "GZIPOutputStream" =>
"2",
338 "HttpURLConnection" =>
"2",
340 "IdentityScope" =>
"2",
341 "IllegalAccessError" =>
"2",
342 "IllegalAccessException" =>
"2",
343 "IllegalArgumentException" =>
"2",
344 "IllegalComponentStateException" =>
"2",
345 "IllegalMonitorStateException" =>
"2",
346 "IllegalStateException" =>
"2",
347 "IllegalThreadStateException" =>
"2",
349 "ImageConsumer" =>
"2",
350 "ImageFilter" =>
"2",
351 "ImageObserver" =>
"2",
352 "ImageProducer" =>
"2",
353 "IncompatibleClassChangeError" =>
"2",
354 "IndexColorModel" =>
"2",
355 "IndexedPropertyDescriptor" =>
"2",
356 "IndexOutOfBoundsException" =>
"2",
357 "InetAddress" =>
"2",
359 "InflaterInputStream" =>
"2",
361 "InputStream" =>
"2",
362 "InputStreamReader" =>
"2",
364 "InstantiationError" =>
"2",
365 "InstantiationException" =>
"2",
367 "InternalError" =>
"2",
368 "InterruptedException" =>
"2",
369 "InterruptedIOException" =>
"2",
370 "IntrospectionException" =>
"2",
371 "Introspector" =>
"2",
372 "InvalidClassException" =>
"2",
373 "InvalidKeyException" =>
"2",
374 "InvalidObjectException" =>
"2",
375 "InvalidParameterException" =>
"2",
376 "InvocationTargetException" =>
"2",
377 "IOException" =>
"2",
379 "ItemListener" =>
"2",
380 "ItemSelectable" =>
"2",
384 "KeyException" =>
"2",
385 "KeyListener" =>
"2",
386 "KeyManagementException" =>
"2",
388 "KeyPairGenerator" =>
"2",
391 "LastOwnerException" =>
"2",
392 "LayoutManager" =>
"2",
393 "LayoutManager2" =>
"2",
395 "LightweightPeer" =>
"2",
396 "LineNumberInputStream" =>
"2",
397 "LineNumberReader" =>
"2",
398 "LinkageError" =>
"2",
401 "ListResourceBundle" =>
"2",
402 "LoaderHandler" =>
"2",
404 "LocateRegistry" =>
"2",
406 "MalformedURLException" =>
"2",
407 "MarshalException" =>
"2",
409 "MediaTracker" =>
"2",
411 "MemoryImageSource" =>
"2",
414 "MenuBarPeer" =>
"2",
415 "MenuComponent" =>
"2",
416 "MenuComponentPeer" =>
"2",
417 "MenuContainer" =>
"2",
419 "MenuItemPeer" =>
"2",
421 "MenuShortcut" =>
"2",
422 "MessageDigest" =>
"2",
423 "MessageFormat" =>
"2",
425 "MethodDescriptor" =>
"2",
426 "MissingResourceException" =>
"2",
428 "MouseAdapter" =>
"2",
430 "MouseListener" =>
"2",
431 "MouseMotionAdapter" =>
"2",
432 "MouseMotionListener" =>
"2",
433 "MulticastSocket" =>
"2",
435 "NegativeArraySizeException" =>
"2",
436 "NoClassDefFoundError" =>
"2",
437 "NoRouteToHostException" =>
"2",
438 "NoSuchAlgorithmException" =>
"2",
439 "NoSuchElementException" =>
"2",
440 "NoSuchFieldError" =>
"2",
441 "NoSuchFieldException" =>
"2",
442 "NoSuchMethodError" =>
"2",
443 "NoSuchMethodException" =>
"2",
444 "NoSuchObjectException" =>
"2",
445 "NoSuchProviderException" =>
"2",
446 "NotActiveException" =>
"2",
447 "NotBoundException" =>
"2",
448 "NotOwnerException" =>
"2",
449 "NotSerializableException" =>
"2",
450 "NullPointerException" =>
"2",
452 "NumberFormat" =>
"2",
453 "NumberFormatException" =>
"2",
455 "ObjectInput" =>
"2",
456 "ObjectInputStream" =>
"2",
457 "ObjectInputValidation" =>
"2",
458 "ObjectOutput" =>
"2",
459 "ObjectOutputStream" =>
"2",
460 "ObjectStreamClass" =>
"2",
461 "ObjectStreamException" =>
"2",
466 "OptionalDataException" =>
"2",
467 "OutOfMemoryError" =>
"2",
468 "OutputStream" =>
"2",
469 "OutputStreamWriter" =>
"2",
474 "ParameterDescriptor" =>
"2",
475 "ParseException" =>
"2",
476 "ParsePosition" =>
"2",
478 "PipedInputStream" =>
"2",
479 "PipedOutputStream" =>
"2",
480 "PipedReader" =>
"2",
481 "PipedWriter" =>
"2",
482 "PixelGrabber" =>
"2",
486 "PopupMenuPeer" =>
"2",
487 "PreparedStatement" =>
"2",
489 "PrintGraphics" =>
"2",
491 "PrintStream" =>
"2",
492 "PrintWriter" =>
"2",
496 "PropertyChangeEvent" =>
"2",
497 "PropertyChangeListener" =>
"2",
498 "PropertyChangeSupport" =>
"2",
499 "PropertyDescriptor" =>
"2",
500 "PropertyEditor" =>
"2",
501 "PropertyEditorManager" =>
"2",
502 "PropertyEditorSupport" =>
"2",
503 "PropertyResourceBundle" =>
"2",
504 "PropertyVetoException" =>
"2",
505 "ProtocolException" =>
"2",
507 "ProviderException" =>
"2",
509 "PushbackInputStream" =>
"2",
510 "PushbackReader" =>
"2",
512 "RandomAccessFile" =>
"2",
514 "RectangleRegistry" =>
"2",
515 "RegistryHandler" =>
"2",
518 "RemoteException" =>
"2",
519 "RemoteObject" =>
"2",
521 "RemoteServer" =>
"2",
523 "ReplicateScaleFilter" =>
"2",
524 "ResourceBundle" =>
"2",
526 "ResultSetMetaData" =>
"2",
527 "RGBImageFilter" =>
"2",
528 "RMIClassLoader" =>
"2",
529 "RMIFailureHandler" =>
"2",
530 "RMISecurityException" =>
"2",
531 "RMISecurityManager" =>
"2",
532 "RMISocketFactory" =>
"2",
533 "RuleBasedCollator" =>
"2",
536 "RuntimeException" =>
"2",
538 "ScrollbarPeer" =>
"2",
540 "ScrollPanePeer" =>
"2",
541 "SecureRandom" =>
"2",
543 "SecurityException" =>
"2",
544 "SecurityManager" =>
"2",
545 "SequenceInputStream" =>
"2",
546 "Serializable" =>
"2",
547 "ServerCloneException" =>
"2",
548 "ServerError" =>
"2",
549 "ServerException" =>
"2",
550 "ServerNotActiveException" =>
"2",
552 "ServerRuntimeException" =>
"2",
553 "ServerSocket" =>
"2",
557 "SignatureException" =>
"2",
559 "SimpleBeanInfo" =>
"2",
560 "SimpleDateFormat" =>
"2",
561 "SimpleTimeZone" =>
"2",
563 "SkeletonMismatchException" =>
"2",
564 "SkeletonNotFoundException" =>
"2",
566 "SocketException" =>
"2",
568 "SocketImplFactory" =>
"2",
569 "SocketSecurityException" =>
"2",
570 "SQLException" =>
"2",
573 "StackOverflowError" =>
"2",
575 "StreamCorruptedException" =>
"2",
576 "StreamTokenizer" =>
"2",
577 "StringBuffer" =>
"2",
578 "StringBufferInputStream" =>
"2",
579 "StringCharacterIterator" =>
"2",
580 "StringIndexOutOfBoundsException" =>
"2",
581 "StringReader" =>
"2",
582 "StringSelection" =>
"2",
583 "StringTokenizer" =>
"2",
584 "StringWriter" =>
"2",
585 "StubNotFoundException" =>
"2",
586 "SyncFailedException" =>
"2",
588 "SystemColor" =>
"2",
590 "TextAreaPeer" =>
"2",
591 "TextComponent" =>
"2",
592 "TextComponentPeer" =>
"2",
595 "TextFieldPeer" =>
"2",
596 "TextListener" =>
"2",
598 "ThreadDeath" =>
"2",
599 "ThreadGroup" =>
"2",
605 "TooManyListenersException" =>
"2",
606 "Transferable" =>
"2",
609 "UnexpectedException" =>
"2",
610 "UnicastRemoteObject" =>
"2",
611 "UnknownError" =>
"2",
612 "UnknownHostException" =>
"2",
613 "UnknownServiceException" =>
"2",
614 "UnmarshalException" =>
"2",
615 "Unreferenced" =>
"2",
616 "UnsatisfiedLinkError" =>
"2",
617 "UnsupportedEncodingException" =>
"2",
618 "UnsupportedFlavorException" =>
"2",
620 "URLConnection" =>
"2",
622 "URLStreamHandler" =>
"2",
623 "URLStreamHandlerFactory" =>
"2",
624 "UTFDataFormatException" =>
"2",
626 "VerifyError" =>
"2",
627 "VetoableChangeListener" =>
"2",
628 "VetoableChangeSupport" =>
"2",
629 "VirtualMachineError" =>
"2",
633 "WindowAdapter" =>
"2",
634 "WindowEvent" =>
"2",
635 "WindowListener" =>
"2",
637 "WriteAbortedException" =>
"2",
640 "ZipException" =>
"2",
642 "ZipInputStream" =>
"2",
643 "ZipOutputStream" =>
"2");
652 $this->linkscripts =
array(
Create styles array
The data for the language used.