ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_winrex.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_winrex extends HFile{
6  function HFile_winrex(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // WinRexx
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", "gray");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("do");
28 $this->unindent = array("end");
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("/*");
40 $this->blockcommentoff = array("*/");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "ABBREV" => "1",
46  "ABS" => "1",
47  "ADDRESS" => "1",
48  "ARG" => "1",
49  "BITAND" => "1",
50  "BITOR" => "1",
51  "BITXOR" => "1",
52  "B2X" => "1",
53  "CENTER" => "1",
54  "CHARIN" => "1",
55  "CHAROUT" => "1",
56  "CHARS" => "1",
57  "COMPARE" => "1",
58  "CONDITION" => "1",
59  "COPIES" => "1",
60  "C2D" => "1",
61  "C2X" => "1",
62  "DATATYPE" => "1",
63  "DATE" => "1",
64  "DELSTR" => "1",
65  "DELWORD" => "1",
66  "DIGITS" => "1",
67  "D2C" => "1",
68  "D2X" => "1",
69  "ERRORTEXT" => "1",
70  "FORM" => "1",
71  "FORMAT" => "1",
72  "FUZZ" => "1",
73  "filespec" => "1",
74  "INSERT" => "1",
75  "LASTPOS" => "1",
76  "LEFT" => "1",
77  "LENGTH" => "1",
78  "LINEIN" => "1",
79  "LINEOUT" => "1",
80  "LINES" => "1",
81  "MAX" => "1",
82  "MIN" => "1",
83  "nop" => "1",
84  "OVERLAY" => "1",
85  "POS" => "1",
86  "QUEUED" => "1",
87  "RANDOM" => "1",
88  "REVERSE" => "1",
89  "RIGHT" => "1",
90  "SIGN" => "1",
91  "SOURCELINE" => "1",
92  "SPACE" => "1",
93  "STREAM" => "1",
94  "STRIP" => "1",
95  "SUBSTR" => "1",
96  "SUBWORD" => "1",
97  "SYMBOL" => "1",
98  "TIME" => "1",
99  "TRACE" => "1",
100  "TRANSLATE" => "1",
101  "TRUNC" => "1",
102  "VALUE" => "1",
103  "VERIFY" => "1",
104  "WORD" => "1",
105  "WORDINDEX" => "1",
106  "WORDLENGTH" => "1",
107  "WORDPOS" => "1",
108  "WORDS" => "1",
109  "XRANGE" => "1",
110  "X2B" => "1",
111  "X2C" => "1",
112  "X2D" => "1",
113  "say" => "2",
114  "signal" => "2",
115  "call" => "3",
116  "do" => "3",
117  "end" => "3",
118  "exit" => "3",
119  "if" => "3",
120  "otherwise" => "3",
121  "select" => "3",
122  "then" => "3",
123  "when" => "3");
124 
125 // Special extensions
126 
127 // Each category can specify a PHP function that returns an altered
128 // version of the keyword.
129 
130 
131 
132 $this->linkscripts = array(
133  "1" => "donothing",
134  "2" => "donothing",
135  "3" => "donothing");
136 }
137 
138 
139 function donothing($keywordin)
140 {
141  return $keywordin;
142 }
143 
144 }?>