ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_6809.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_6809 extends HFile
8 {
9 public function HFile_6809()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14//
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");
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 "#%" => "1",
51 "&(" => "1",
52 "ABX" => "2",
53 "ADCA" => "2",
54 "ADCB" => "2",
55 "ADDA" => "2",
56 "ADDB" => "2",
57 "ADDD" => "2",
58 "ANDA" => "2",
59 "ANDB" => "2",
60 "ANDCC" => "2",
61 "ASLA" => "2",
62 "ASLB" => "2",
63 "ASL" => "2",
64 "ASRA" => "2",
65 "ASR" => "2",
66 "BCC" => "2",
67 "BCS" => "2",
68 "BEQ" => "2",
69 "BGE" => "2",
70 "BGT" => "2",
71 "BHI" => "2",
72 "BHS" => "2",
73 "BLE" => "2",
74 "BLO" => "2",
75 "BLS" => "2",
76 "BLT" => "2",
77 "BMI" => "2",
78 "BNE" => "2",
79 "BPL" => "2",
80 "BRA" => "2",
81 "BRN" => "2",
82 "BSR" => "2",
83 "BVC" => "2",
84 "BVS" => "2",
85 "BITA" => "2",
86 "BITB" => "2",
87 "CLRA" => "2",
88 "CLRB" => "2",
89 "CLR" => "2",
90 "CMPA" => "2",
91 "CMPB" => "2",
92 "CMPD" => "2",
93 "CMPS" => "2",
94 "CMPU" => "2",
95 "CMPX" => "2",
96 "CMPY" => "2",
97 "COMA" => "2",
98 "COMB" => "2",
99 "COM" => "2",
100 "CWAI" => "2",
101 "DAA" => "2",
102 "DECA" => "2",
103 "DECB" => "2",
104 "DEC" => "2",
105 "EORA" => "2",
106 "EORB" => "2",
107 "EXG" => "2",
108 "INCA" => "2",
109 "INCB" => "2",
110 "INC" => "2",
111 "JMP" => "2",
112 "JSR" => "2",
113 "LDA" => "2",
114 "LDB" => "2",
115 "LDD" => "2",
116 "LDS" => "2",
117 "LDU" => "2",
118 "LDX" => "2",
119 "LDY" => "2",
120 "LEAS" => "2",
121 "LEAU" => "2",
122 "LEAX" => "2",
123 "LEAY" => "2",
124 "LSLA" => "2",
125 "LSLB" => "2",
126 "LSL" => "2",
127 "LSRA" => "2",
128 "LSRB" => "2",
129 "LSR" => "2",
130 "LBCC" => "2",
131 "LBCS" => "2",
132 "LBEQ" => "2",
133 "LBGE" => "2",
134 "LBGT" => "2",
135 "LBHI" => "2",
136 "LBHS" => "2",
137 "LBLE" => "2",
138 "LBLO" => "2",
139 "LBLS" => "2",
140 "LBLT" => "2",
141 "LBMI" => "2",
142 "LBNE" => "2",
143 "LBPL" => "2",
144 "LBRA" => "2",
145 "LBRN" => "2",
146 "LBSR" => "2",
147 "LBVC" => "2",
148 "LBVS" => "2",
149 "MUL" => "2",
150 "NEGA" => "2",
151 "NEGB" => "2",
152 "NEG" => "2",
153 "NOP" => "2",
154 "ORA" => "2",
155 "ORB" => "2",
156 "ORCC" => "2",
157 "BeautifierS" => "2",
158 "BeautifierU" => "2",
159 "PULS" => "2",
160 "PULU" => "2",
161 "ROLA" => "2",
162 "ROLB" => "2",
163 "ROL" => "2",
164 "RORA" => "2",
165 "RORB" => "2",
166 "ROR" => "2",
167 "RTI" => "2",
168 "RTS" => "2",
169 "SBCA" => "2",
170 "SBCB" => "2",
171 "SEX" => "2",
172 "STA" => "2",
173 "STB" => "2",
174 "STD" => "2",
175 "STS" => "2",
176 "STU" => "2",
177 "STX" => "2",
178 "STY" => "2",
179 "SUBA" => "2",
180 "SUBB" => "2",
181 "SUBD" => "2",
182 "SWI" => "2",
183 "SWI2" => "2",
184 "SWI3" => "2",
185 "SYNC" => "2",
186 "TFR" => "2",
187 "TSTA" => "2",
188 "TSTB" => "2",
189 "TST" => "2",
190 "FCB" => "3",
191 "FDB" => "3",
192 "FCC" => "3",
193 "RMB" => "3",
194 "END" => "4",
195 "LIB" => "4",
196 "EQU" => "5",
197 "ENDM" => "5",
198 "MACRO" => "5",
199 "ORG" => "5",
200 "SETDP" => "5");
201
202 // Special extensions
203
204 // Each category can specify a PHP function that returns an altered
205 // version of the keyword.
206
207
208
209 $this->linkscripts = array(
210 "1" => "donothing",
211 "2" => "donothing",
212 "3" => "donothing",
213 "4" => "donothing",
214 "5" => "donothing");
215 }
216
217
218 public function donothing($keywordin)
219 {
220 return $keywordin;
221 }
222 }
$BEAUT_PATH
Definition: HFile_6809.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)
Definition: HFile_6809.php:218