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