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