ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_baan3.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_baan3 extends HFile
8  {
9  public function HFile_baan3()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Baan 3/4-GL
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
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");
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array();
37  $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", "?");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("|");
43  $this->blockcommenton = array("dllusage");
44  $this->blockcommentoff = array("endusage");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "at" => "1",
50  "and" => "1",
51  "as" => "1",
52  "auto" => "1",
53  "base" => "1",
54  "based" => "1",
55  "break" => "1",
56  "bset" => "1",
57  "call" => "1",
58  "case" => "1",
59  "char" => "1",
60  "clean" => "1",
61  "commit" => "1",
62  "common" => "1",
63  "const" => "1",
64  "continue" => "1",
65  "default" => "1",
66  "dim" => "1",
67  "do" => "1",
68  "domain" => "1",
69  "double" => "1",
70  "else" => "1",
71  "empty" => "1",
72  "end" => "1",
73  "endcase" => "1",
74  "endfor" => "1",
75  "endif" => "1",
76  "endwhile" => "1",
77  "endselect" => "1",
78  "enum" => "1",
79  "eq" => "1",
80  "extern" => "1",
81  "false" => "1",
82  "fixed" => "1",
83  "for" => "1",
84  "from" => "1",
85  "function" => "1",
86  "ge" => "1",
87  "global" => "1",
88  "goto" => "1",
89  "gt" => "1",
90  "if" => "1",
91  "in" => "1",
92  "input" => "1",
93  "le" => "1",
94  "long" => "1",
95  "lt" => "1",
96  "mb" => "1",
97  "mess" => "1",
98  "multibyte" => "1",
99  "ne" => "1",
100  "not" => "1",
101  "on" => "1",
102  "or" => "1",
103  "print" => "1",
104  "prompt" => "1",
105  "ref" => "1",
106  "reference" => "1",
107  "register" => "1",
108  "repeat" => "1",
109  "return" => "1",
110  "rows" => "1",
111  "select" => "1",
112  "selectbind" => "1",
113  "selectdo" => "1",
114  "selectempty" => "1",
115  "selecteos" => "1",
116  "selecterror" => "1",
117  "set" => "1",
118  "static" => "1",
119  "step" => "1",
120  "stop" => "1",
121  "string" => "1",
122  "switch" => "1",
123  "table" => "1",
124  "then" => "1",
125  "to" => "1",
126  "transaction" => "1",
127  "true" => "1",
128  "typedef" => "1",
129  "union" => "1",
130  "unsigned" => "1",
131  "until" => "1",
132  "update" => "1",
133  "void" => "1",
134  "where" => "1",
135  "wherebind" => "1",
136  "whereused" => "1",
137  "while" => "1",
138  "with" => "1",
139  "#define" => "1",
140  "#include" => "1",
141  "#elif" => "1",
142  "#if" => "1",
143  "#line" => "1",
144  "#else" => "1",
145  "#ifdef" => "1",
146  "#pragma" => "1",
147  "#endif" => "1",
148  "#ifndef" => "1",
149  "#undef" => "1",
150  "#ident" => "1",
151  "AbstractMethodError" => "2",
152  "AccessException" => "2",
153  "Acl" => "2",
154  "AclEntry" => "2",
155  "AclNotFoundException" => "2",
156  "ActionEvent" => "2",
157  "ActionListener" => "2",
158  "Adjustable" => "2",
159  "AdjustmentEvent" => "2",
160  "AdjustmentListener" => "2",
161  "Adler32" => "2",
162  "AlreadyBoundException" => "2",
163  "Applet" => "2",
164  "AppletContext" => "2",
165  "AppletStub" => "2",
166  "AreaAveragingScaleFilter" => "2",
167  "ArithmeticException" => "2",
168  "Array" => "2",
169  "ArrayIndexOutOfBoundsException" => "2",
170  "ArrayStoreException" => "2",
171  "AudioClip" => "2",
172  "AWTError" => "2",
173  "AWTEvent" => "2",
174  "AWTEventMulticaster" => "2",
175  "AWTException" => "2",
176  "BeanDescriptor" => "2",
177  "BeanInfo" => "2",
178  "Beans" => "2",
179  "BigDecimal" => "2",
180  "BigInteger" => "2",
181  "BindException" => "2",
182  "BitSet" => "2",
183  "Boolean" => "2",
184  "BorderLayout" => "2",
185  "BreakIterator" => "2",
186  "BufferedInputStream" => "2",
187  "BufferedOutputStream" => "2",
188  "BufferedReader" => "2",
189  "BufferedWriter" => "2",
190  "Button" => "2",
191  "ButtonPeer" => "2",
192  "Byte" => "2",
193  "ByteArrayInputStream" => "2",
194  "ByteArrayOutputStream" => "2",
195  "Calendar" => "2",
196  "CallableStatement" => "2",
197  "CanvasCanvasPeer" => "2",
198  "Certificate" => "2",
199  "Character" => "2",
200  "CharacterIterator" => "2",
201  "CharArrayReader" => "2",
202  "CharArrayWriter" => "2",
203  "CharConversionException" => "2",
204  "Checkbox" => "2",
205  "CheckboxGroup" => "2",
206  "CheckboxMenuItem" => "2",
207  "CheckboxMenuItemPeer" => "2",
208  "CheckboxPeer" => "2",
209  "CheckedInputStream" => "2",
210  "CheckedOutputStream" => "2",
211  "Checksum" => "2",
212  "Choice" => "2",
213  "ChoiceFormat" => "2",
214  "ChoicePeer" => "2",
215  "Class" => "2",
216  "ClassCastException" => "2",
217  "ClassCircularityError" => "2",
218  "ClassFormatError" => "2",
219  "ClassLoader" => "2",
220  "ClassNotFoundException" => "2",
221  "Clipboard" => "2",
222  "ClipboardOwner" => "2",
223  "Cloneable" => "2",
224  "CloneNotSupportedException" => "2",
225  "CollationElementIterator" => "2",
226  "CollationKey" => "2",
227  "Collator" => "2",
228  "Color" => "2",
229  "ColorModel" => "2",
230  "Compiler" => "2",
231  "Component" => "2",
232  "ComponentAdapter" => "2",
233  "ComponentEvent" => "2",
234  "ComponentListener" => "2",
235  "ComponentPeer" => "2",
236  "ConnectException" => "2",
237  "ConnectIOException" => "2",
238  "Connection" => "2",
239  "Constructor" => "2",
240  "Container" => "2",
241  "ContainerAdapter" => "2",
242  "ContainerEvent" => "2",
243  "ContainerListener" => "2",
244  "ContainerPeer" => "2",
245  "ContentHandler" => "2",
246  "ContentHandlerFactory" => "2",
247  "CRC32" => "2",
248  "CropImageFilter" => "2",
249  "Cursor" => "2",
250  "Customizer" => "2",
251  "CardLayout" => "2",
252  "DatabaseMetaData" => "2",
253  "DataFlavor" => "2",
254  "DataFormatException" => "2",
255  "DatagramPacket" => "2",
256  "DatagramSocket" => "2",
257  "DatagramSocketImpl" => "2",
258  "DataInput" => "2",
259  "DataInputStream" => "2",
260  "DataOutput" => "2",
261  "DataOutputStream" => "2",
262  "DataTruncation" => "2",
263  "Date" => "2",
264  "DateFormat" => "2",
265  "DateFormatSymbols" => "2",
266  "DecimalFormat" => "2",
267  "DecimalFormatSymbols" => "2",
268  "Deflater" => "2",
269  "DeflaterOutputStream" => "2",
270  "DGC" => "2",
271  "Dialog" => "2",
272  "DialogPeer" => "2",
273  "Dictionary" => "2",
274  "DigestException" => "2",
275  "DigestInputStream" => "2",
276  "DigestOutputStream" => "2",
277  "Dimension" => "2",
278  "DirectColorModel" => "2",
279  "Driver" => "2",
280  "DriverManager" => "2",
281  "DriverPropertyInfo" => "2",
282  "DSAKey" => "2",
283  "DSAKeyPairGenerator" => "2",
284  "DSAParams" => "2",
285  "DSAPrivateKey" => "2",
286  "DSAPublicKey" => "2",
287  "EmptyStackException" => "2",
288  "Enumeration" => "2",
289  "EOFException" => "2",
290  "Error" => "2",
291  "Event" => "2",
292  "EventListener" => "2",
293  "EventObject" => "2",
294  "EventQueue" => "2",
295  "EventSetDescriptor" => "2",
296  "Exception" => "2",
297  "ExceptionInInitializerError" => "2",
298  "ExportException" => "2",
299  "FeatureDescriptor" => "2",
300  "Field" => "2",
301  "FieldPosition" => "2",
302  "File" => "2",
303  "FileDescriptor" => "2",
304  "FileDialog" => "2",
305  "FileDialogPeer" => "2",
306  "FileInputStream" => "2",
307  "FilenameFilter" => "2",
308  "FileNameMap" => "2",
309  "FileNotFoundException" => "2",
310  "FileOutputStream" => "2",
311  "FileReader" => "2",
312  "FileWriter" => "2",
313  "FilteredImageSource" => "2",
314  "FilterInputStream" => "2",
315  "FilterOutputStream" => "2",
316  "FilterReader" => "2",
317  "FilterWriter" => "2",
318  "Float" => "2",
319  "FlowLayout" => "2",
320  "FocusAdapter" => "2",
321  "FocusEvent" => "2",
322  "FocusListener" => "2",
323  "Font" => "2",
324  "FontMetrics" => "2",
325  "FontPeer" => "2",
326  "Format" => "2",
327  "Frame" => "2",
328  "FramePeer" => "2",
329  "Graphics" => "2",
330  "GregorianCalendar" => "2",
331  "GridBagConstraints" => "2",
332  "GridBagLayout" => "2",
333  "GridLayout" => "2",
334  "Group" => "2",
335  "GZIPInputStream" => "2",
336  "GZIPOutputStream" => "2",
337  "Hashtable" => "2",
338  "HttpURLConnection" => "2",
339  "Identity" => "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",
348  "Image" => "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",
358  "Inflater" => "2",
359  "InflaterInputStream" => "2",
360  "InputEvent" => "2",
361  "InputStream" => "2",
362  "InputStreamReader" => "2",
363  "Insets" => "2",
364  "InstantiationError" => "2",
365  "InstantiationException" => "2",
366  "Integer" => "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",
378  "ItemEvent" => "2",
379  "ItemListener" => "2",
380  "ItemSelectable" => "2",
381  "Key" => "2",
382  "KeyAdapter" => "2",
383  "KeyEvent" => "2",
384  "KeyException" => "2",
385  "KeyListener" => "2",
386  "KeyManagementException" => "2",
387  "KeyPair" => "2",
388  "KeyPairGenerator" => "2",
389  "Label" => "2",
390  "LabelPeer" => "2",
391  "LastOwnerException" => "2",
392  "LayoutManager" => "2",
393  "LayoutManager2" => "2",
394  "Lease" => "2",
395  "LightweightPeer" => "2",
396  "LineNumberInputStream" => "2",
397  "LineNumberReader" => "2",
398  "LinkageError" => "2",
399  "List" => "2",
400  "ListPeer" => "2",
401  "ListResourceBundle" => "2",
402  "LoaderHandler" => "2",
403  "Locale" => "2",
404  "LocateRegistry" => "2",
405  "LogStream" => "2",
406  "MalformedURLException" => "2",
407  "MarshalException" => "2",
408  "Math" => "2",
409  "MediaTracker" => "2",
410  "Member" => "2",
411  "MemoryImageSource" => "2",
412  "Menu" => "2",
413  "MenuBar" => "2",
414  "MenuBarPeer" => "2",
415  "MenuComponent" => "2",
416  "MenuComponentPeer" => "2",
417  "MenuContainer" => "2",
418  "MenuItem" => "2",
419  "MenuItemPeer" => "2",
420  "MenuPeer" => "2",
421  "MenuShortcut" => "2",
422  "MessageDigest" => "2",
423  "MessageFormat" => "2",
424  "Method" => "2",
425  "MethodDescriptor" => "2",
426  "MissingResourceException" => "2",
427  "Modifier" => "2",
428  "MouseAdapter" => "2",
429  "MouseEvent" => "2",
430  "MouseListener" => "2",
431  "MouseMotionAdapter" => "2",
432  "MouseMotionListener" => "2",
433  "MulticastSocket" => "2",
434  "Naming" => "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",
451  "Number" => "2",
452  "NumberFormat" => "2",
453  "NumberFormatException" => "2",
454  "Object" => "2",
455  "ObjectInput" => "2",
456  "ObjectInputStream" => "2",
457  "ObjectInputValidation" => "2",
458  "ObjectOutput" => "2",
459  "ObjectOutputStream" => "2",
460  "ObjectStreamClass" => "2",
461  "ObjectStreamException" => "2",
462  "ObjID" => "2",
463  "Observable" => "2",
464  "Observer" => "2",
465  "Operation" => "2",
466  "OptionalDataException" => "2",
467  "OutOfMemoryError" => "2",
468  "OutputStream" => "2",
469  "OutputStreamWriter" => "2",
470  "Owner" => "2",
471  "PaintEvent" => "2",
472  "Panel" => "2",
473  "PanelPeer" => "2",
474  "ParameterDescriptor" => "2",
475  "ParseException" => "2",
476  "ParsePosition" => "2",
477  "Permission" => "2",
478  "PipedInputStream" => "2",
479  "PipedOutputStream" => "2",
480  "PipedReader" => "2",
481  "PipedWriter" => "2",
482  "PixelGrabber" => "2",
483  "Point" => "2",
484  "Polygon" => "2",
485  "PopupMenu" => "2",
486  "PopupMenuPeer" => "2",
487  "PreparedStatement" => "2",
488  "Principal" => "2",
489  "PrintGraphics" => "2",
490  "PrintJob" => "2",
491  "PrintStream" => "2",
492  "PrintWriter" => "2",
493  "PrivateKey" => "2",
494  "Process" => "2",
495  "Properties" => "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",
506  "Provider" => "2",
507  "ProviderException" => "2",
508  "PublicKey" => "2",
509  "PushbackInputStream" => "2",
510  "PushbackReader" => "2",
511  "Random" => "2",
512  "RandomAccessFile" => "2",
513  "Reader" => "2",
514  "RectangleRegistry" => "2",
515  "RegistryHandler" => "2",
516  "Remote" => "2",
517  "RemoteCall" => "2",
518  "RemoteException" => "2",
519  "RemoteObject" => "2",
520  "RemoteRef" => "2",
521  "RemoteServer" => "2",
522  "RemoteStub" => "2",
523  "ReplicateScaleFilter" => "2",
524  "ResourceBundle" => "2",
525  "ResultSet" => "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",
534  "Runnable" => "2",
535  "Runtime" => "2",
536  "RuntimeException" => "2",
537  "Scrollbar" => "2",
538  "ScrollbarPeer" => "2",
539  "ScrollPane" => "2",
540  "ScrollPanePeer" => "2",
541  "SecureRandom" => "2",
542  "Security" => "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",
551  "ServerRef" => "2",
552  "ServerRuntimeException" => "2",
553  "ServerSocket" => "2",
554  "Shape" => "2",
555  "Short" => "2",
556  "Signature" => "2",
557  "SignatureException" => "2",
558  "Signer" => "2",
559  "SimpleBeanInfo" => "2",
560  "SimpleDateFormat" => "2",
561  "SimpleTimeZone" => "2",
562  "Skeleton" => "2",
563  "SkeletonMismatchException" => "2",
564  "SkeletonNotFoundException" => "2",
565  "Socket" => "2",
566  "SocketException" => "2",
567  "SocketImpl" => "2",
568  "SocketImplFactory" => "2",
569  "SocketSecurityException" => "2",
570  "SQLException" => "2",
571  "SQLWarning" => "2",
572  "Stack" => "2",
573  "StackOverflowError" => "2",
574  "Statement" => "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",
587  "System" => "2",
588  "SystemColor" => "2",
589  "TextArea" => "2",
590  "TextAreaPeer" => "2",
591  "TextComponent" => "2",
592  "TextComponentPeer" => "2",
593  "TextEvent" => "2",
594  "TextField" => "2",
595  "TextFieldPeer" => "2",
596  "TextListener" => "2",
597  "Thread" => "2",
598  "ThreadDeath" => "2",
599  "ThreadGroup" => "2",
600  "Throwable" => "2",
601  "Time" => "2",
602  "Timestamp" => "2",
603  "TimeZone" => "2",
604  "Toolkit" => "2",
605  "TooManyListenersException" => "2",
606  "Transferable" => "2",
607  "Types" => "2",
608  "UID" => "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",
619  "URL" => "2",
620  "URLConnection" => "2",
621  "URLEncoder" => "2",
622  "URLStreamHandler" => "2",
623  "URLStreamHandlerFactory" => "2",
624  "UTFDataFormatException" => "2",
625  "Vector" => "2",
626  "VerifyError" => "2",
627  "VetoableChangeListener" => "2",
628  "VetoableChangeSupport" => "2",
629  "VirtualMachineError" => "2",
630  "Visibility" => "2",
631  "VMID" => "2",
632  "Window" => "2",
633  "WindowAdapter" => "2",
634  "WindowEvent" => "2",
635  "WindowListener" => "2",
636  "WindowPeer" => "2",
637  "WriteAbortedException" => "2",
638  "Writer" => "2",
639  "ZipEntry" => "2",
640  "ZipException" => "2",
641  "ZipFile" => "2",
642  "ZipInputStream" => "2",
643  "ZipOutputStream" => "2");
644 
645  // Special extensions
646 
647  // Each category can specify a PHP function that returns an altered
648  // version of the keyword.
649 
650 
651 
652  $this->linkscripts = array(
653  "1" => "donothing",
654  "2" => "donothing");
655  }
656 
657 
658  public function donothing($keywordin)
659  {
660  return $keywordin;
661  }
662  }
$BEAUT_PATH
Definition: HFile_baan3.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21
donothing($keywordin)