ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_linker.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_linker extends HFile
8 {
9 public function HFile_linker()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Linker File
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", "gray", "brown", "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 "HD" => "1",
50 "HEADER" => "1",
51 "LISTREGISTERS" => "1",
52 "LISTSYMBOLS" => "1",
53 "LRG" => "1",
54 "LSY" => "1",
55 "MA" => "1",
56 "MAP" => "1",
57 "NOHD" => "1",
58 "NOHEADER" => "1",
59 "NOLISTREGISTERS" => "1",
60 "NOLISTSYMBOLS" => "1",
61 "NOLRG" => "1",
62 "NOLSY" => "1",
63 "NOMA" => "1",
64 "NOMAP" => "1",
65 "NOPR" => "1",
66 "NOPRINT" => "1",
67 "PR" => "1",
68 "PRINT" => "1",
69 "AS" => "2",
70 "ASSIGN" => "2",
71 "CM" => "2",
72 "COMMENTS" => "2",
73 "DB" => "2",
74 "DEBUG" => "2",
75 "EC" => "2",
76 "EX" => "2",
77 "EXCEPT" => "2",
78 "EXTERNS" => "2",
79 "GL" => "2",
80 "GLOBALS" => "2",
81 "GR" => "2",
82 "GROUPS" => "2",
83 "IN" => "2",
84 "INTNRS" => "2",
85 "LC" => "2",
86 "LINES" => "2",
87 "LN" => "2",
88 "LOCALS" => "2",
89 "NOCM" => "2",
90 "NOCOMMENTS" => "2",
91 "NODB" => "2",
92 "NODEBUG" => "2",
93 "NOGL" => "2",
94 "NOGLOBALS" => "2",
95 "NOLC" => "2",
96 "NOLINES" => "2",
97 "NOLN" => "2",
98 "NOLOCALS" => "2",
99 "NOPB" => "2",
100 "NOPU" => "2",
101 "NOPUBLICS" => "2",
102 "NOPURGE" => "2",
103 "NOSB" => "2",
104 "NOSM" => "2",
105 "NOSYMB" => "2",
106 "OBJECTCONTROLS" => "2",
107 "OC" => "2",
108 "PB" => "2",
109 "PC" => "2",
110 "PRINTCONTROLS" => "2",
111 "PU" => "2",
112 "PUBLICS" => "2",
113 "PURGE" => "2",
114 "RENAMESYMBOLS" => "2",
115 "RS" => "2",
116 "SB" => "2",
117 "SC" => "2",
118 "SM" => "2",
119 "SYMB" => "2",
120 "SYMBOLCOLUMNS" => "2",
121 "DA" => "3",
122 "DATE" => "3",
123 "NOPA" => "3",
124 "NOPAGING" => "3",
125 "PA" => "3",
126 "PAGELENGTH" => "3",
127 "PAGEWIDTH" => "3",
128 "PAGING" => "3",
129 "PL" => "3",
130 "PW" => "3",
131 "TITLE" => "3",
132 "TT" => "3",
133 "AD" => "4",
134 "ADDRESSES" => "4",
135 "CL" => "4",
136 "CLASSES" => "4",
137 "FP" => "4",
138 "FPS" => "4",
139 "FPSTACKSIZE" => "4",
140 "HEAPSIZE" => "4",
141 "HP" => "4",
142 "HS" => "4",
143 "INTTBL" => "4",
144 "IR" => "4",
145 "IRAM" => "4",
146 "IRAMSIZE" => "4",
147 "IS" => "4",
148 "IT" => "4",
149 "LINEAR" => "4",
150 "LR" => "4",
151 "ME" => "4",
152 "MEMORY" => "4",
153 "NOIR" => "4",
154 "NOIRAM" => "4",
155 "NOSAL" => "4",
156 "NOSORTALIGN" => "4",
157 "NOVECINIT" => "4",
158 "NOVECTAB" => "4",
159 "NOVI" => "4",
160 "NOVT" => "4",
161 "OR" => "4",
162 "ORDER" => "4",
163 "OVERLAY" => "4",
164 "OVL" => "4",
165 "PECPTR" => "4",
166 "PP" => "4",
167 "RAM" => "4",
168 "RB" => "4",
169 "RBANK" => "4",
170 "RE" => "4",
171 "RESERVE" => "4",
172 "ROM" => "4",
173 "SAL" => "4",
174 "SE" => "4",
175 "SECSIZE" => "4",
176 "SECTIONS" => "4",
177 "SETNOSGDPP" => "4",
178 "SND" => "4",
179 "SORTALIGN" => "4",
180 "SS" => "4",
181 "SY" => "4",
182 "SYSSTACK" => "4",
183 "VECINIT" => "4",
184 "VECTAB" => "4",
185 "VI" => "4",
186 "VT" => "4",
187 "(" => "5",
188 ")" => "5",
189 "+" => "5",
190 "," => "5",
191 "-" => "5",
192 "?" => "5",
193 "CA" => "6",
194 "CASE" => "6",
195 "CC" => "6",
196 "CHECKCLASSES" => "6",
197 "GENERAL" => "6",
198 "GLOBALSONLY" => "6",
199 "GN" => "6",
200 "GO" => "6",
201 "INT" => "6",
202 "INTERRUPT" => "6",
203 "LIBPATH" => "6",
204 "LINK" => "6",
205 "LNK" => "6",
206 "LOC" => "6",
207 "LOCATE" => "6",
208 "LP" => "6",
209 "MODPATH" => "6",
210 "MP" => "6",
211 "NA" => "6",
212 "NAME" => "6",
213 "NOCA" => "6",
214 "NOCASE" => "6",
215 "NOCC" => "6",
216 "NOCHECKCLASSES" => "6",
217 "NOST" => "6",
218 "NOSTRICTTASK" => "6",
219 "NOTY" => "6",
220 "NOTYPE" => "6",
221 "NOWA" => "6",
222 "NOWARNING" => "6",
223 "PO" => "6",
224 "PTOG" => "6",
225 "PUBLICSONLY" => "6",
226 "PUBTOGLB" => "6",
227 "ST" => "6",
228 "STRICTTASK" => "6",
229 "TY" => "6",
230 "TYPE" => "6",
231 "WA" => "6",
232 "WARNING" => "6",
233 "CBITS" => "7",
234 "CBITWORDS" => "7",
235 "CFAR" => "7",
236 "CFARROM" => "7",
237 "CHUGE" => "7",
238 "CHUGEROM" => "7",
239 "CINITROM" => "7",
240 "CIRAM" => "7",
241 "CNEAR" => "7",
242 "CNEAR2" => "7",
243 "CPROGRAM" => "7",
244 "CROM" => "7",
245 "CSHUGE" => "7",
246 "CSHUGEROM" => "7",
247 "CSYSTEM" => "7",
248 "CUSTACK" => "7",
249 "C_INIT" => "7",
250 "CLIBRARY" => "8",
251 "RTLIBRARY" => "8",
252 "SHAREDCLIB" => "8",
253 "SHAREDRTLIB" => "8");
254
255 // Special extensions
256
257 // Each category can specify a PHP function that returns an altered
258 // version of the keyword.
259
260
261
262 $this->linkscripts = array(
263 "1" => "donothing",
264 "2" => "donothing",
265 "3" => "donothing",
266 "4" => "donothing",
267 "5" => "donothing",
268 "6" => "donothing",
269 "7" => "donothing",
270 "8" => "donothing");
271 }
272
273
274 public function donothing($keywordin)
275 {
276 return $keywordin;
277 }
278 }
$BEAUT_PATH
Definition: HFile_linker.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)