ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_plm.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_plm extends HFile{
6  function HFile_plm(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // PLM
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("{");
28 $this->unindent = array("}");
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  "@" => "1",
46  "BLOCKINPUT" => "1",
47  "BLOCKINWORD" => "1",
48  "BLOCKOUTPUT" => "1",
49  "BLOCKOUTWORD" => "1",
50  "CALL" => "1",
51  "CASE" => "1",
52  "CMPB" => "1",
53  "CMPW" => "1",
54  "DECLARE" => "1",
55  "DISABLE" => "1",
56  "DO" => "1",
57  "ELSE" => "1",
58  "ENABLE" => "1",
59  "END" => "1",
60  "EXTERNAL" => "1",
61  "GOTO" => "1",
62  "HALT" => "1",
63  "IF" => "1",
64  "INPUT" => "1",
65  "INTERRUPT" => "1",
66  "INWORD" => "1",
67  "OUTPUT" => "1",
68  "OUTWORD" => "1",
69  "PROCEDURE" => "1",
70  "PUBLIC" => "1",
71  "REENTRANT" => "1",
72  "RETURN" => "1",
73  "SIZE" => "1",
74  "STRUCTURE" => "1",
75  "THEN" => "1",
76  "WHILE" => "1",
77  "." => "2",
78  "*" => "2",
79  "+" => "2",
80  "-" => "2",
81  "=" => "2",
82  "//" => "2",
83  "/" => "2",
84  "%" => "2",
85  "&" => "2",
86  ">" => "2",
87  "<" => "2",
88  "^" => "2",
89  "!" => "2",
90  "|" => "2",
91  "ABS" => "2",
92  "AND" => "2",
93  "CARRY" => "2",
94  "DEC" => "2",
95  "FINDB" => "2",
96  "FINDRB" => "2",
97  "FINDRW" => "2",
98  "FINDW" => "2",
99  "FLAGS" => "2",
100  "IABS" => "2",
101  "LAST" => "2",
102  "LENGTH" => "2",
103  "MINUS" => "2",
104  "MOVB" => "2",
105  "MOVE" => "2",
106  "MOVRB" => "2",
107  "MOVRW" => "2",
108  "MOVW" => "2",
109  "NOT" => "2",
110  "OR" => "2",
111  "PARITY" => "2",
112  "PLUS" => "2",
113  "ROL" => "2",
114  "ROR" => "2",
115  "SAL" => "2",
116  "SAR" => "2",
117  "SCL" => "2",
118  "SCR" => "2",
119  "SETB" => "2",
120  "SETW" => "2",
121  "SHL" => "2",
122  "SHR" => "2",
123  "SIGN" => "2",
124  "SKIPB" => "2",
125  "SKIPRB" => "2",
126  "SKIPRW" => "2",
127  "SKIPW" => "2",
128  "TIME" => "2",
129  "XLAT" => "2",
130  "XOR" => "2",
131  "ZERO" => "2",
132  "BYTE" => "3",
133  "DWORD" => "3",
134  "DOUBLE" => "3",
135  "FLOAT" => "3",
136  "FIX" => "3",
137  "HIGH" => "3",
138  "INTEGER" => "3",
139  "INT" => "3",
140  "LOW" => "3",
141  "POINTER" => "3",
142  "REAL" => "3",
143  "SIGNED" => "3",
144  "UNSIGNED" => "3",
145  "WORD" => "3",
146  "$" => "4",
147  "COMPACT" => "4",
148  "CODE" => "4",
149  "COND" => "4",
150  "DEBUG" => "4",
151  "EJECT" => "4",
152  "INTVECTOR" => "4",
153  "INCLUDE" => "4",
154  "LARGE" => "4",
155  "LEFTMARGIN" => "4",
156  "LIST" => "4",
157  "MOD86" => "4",
158  "MOD186" => "4",
159  "MEDIUM" => "4",
160  "NODEBUG" => "4",
161  "NONINTVECTOR" => "4",
162  "NOOBJECT" => "4",
163  "NOPAGING" => "4",
164  "NOPRINT" => "4",
165  "NOSYMBOLS" => "4",
166  "NOTYPE" => "4",
167  "NOXREF" => "4",
168  "NOCODE" => "4",
169  "NOCOND" => "4",
170  "NOLIST" => "4",
171  "NOOVERFLOW" => "4",
172  "OBJECT" => "4",
173  "OPTIMIZE" => "4",
174  "OVERFLOW" => "4",
175  "PAGING" => "4",
176  "PAGELENGTH" => "4",
177  "PAGEWIDTH" => "4",
178  "PRINT" => "4",
179  "RAM" => "4",
180  "ROM" => "4",
181  "RESTORE" => "4",
182  "RESET" => "4",
183  "SMALL" => "4",
184  "SYMBOLS" => "4",
185  "SAVE" => "4",
186  "SET" => "4",
187  "SUBTITLE" => "4",
188  "TITLE" => "4",
189  "TYPE" => "4",
190  "XREF" => "4");
191 
192 // Special extensions
193 
194 // Each category can specify a PHP function that returns an altered
195 // version of the keyword.
196 
197 
198 
199 $this->linkscripts = array(
200  "1" => "donothing",
201  "2" => "donothing",
202  "3" => "donothing",
203  "4" => "donothing");
204 }
205 
206 
207 function donothing($keywordin)
208 {
209  return $keywordin;
210 }
211 
212 }?>