ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_scenix.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_scenix extends HFile
8  {
9  public function HFile_scenix()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Scenix
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", "blue", "purple");
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  "add" => "1",
50  "addb" => "1",
51  "and" => "1",
52  "bank" => "1",
53  "call" => "1",
54  "cja" => "1",
55  "cjae" => "1",
56  "cjb" => "1",
57  "cjbe" => "1",
58  "cje" => "1",
59  "cjne" => "1",
60  "clc" => "1",
61  "clr" => "1",
62  "clrb" => "1",
63  "clz" => "1",
64  "dec" => "1",
65  "djnz" => "1",
66  "ijnz" => "1",
67  "inc" => "1",
68  "iread" => "1",
69  "jb" => "1",
70  "jc" => "1",
71  "jmp" => "1",
72  "jnb" => "1",
73  "jnc" => "1",
74  "jnz" => "1",
75  "jz" => "1",
76  "lcall" => "1",
77  "ljmp" => "1",
78  "lset" => "1",
79  "mov" => "1",
80  "movb" => "1",
81  "nop" => "1",
82  "not" => "1",
83  "or" => "1",
84  "page" => "1",
85  "ret" => "1",
86  "reti" => "1",
87  "retiw" => "1",
88  "retp" => "1",
89  "retw" => "1",
90  "rl" => "1",
91  "rr" => "1",
92  "setb" => "1",
93  "sleep" => "1",
94  "stc" => "1",
95  "stz" => "1",
96  "sub" => "1",
97  "subb" => "1",
98  "swap" => "1",
99  "test" => "1",
100  "xor" => "1",
101  "\"[0123456789aAbBcCdDeEfF]\"" => "2",
102  "fsr" => "3",
103  "ind" => "3",
104  "indf" => "3",
105  "m" => "3",
106  "option" => "3",
107  "pc" => "3",
108  "ra" => "3",
109  "rb" => "3",
110  "rc" => "3",
111  "rd" => "3",
112  "re" => "3",
113  "w" => "3",
114  "!" => "4",
115  "#" => "4",
116  "$" => "4",
117  "%" => "4",
118  "+" => "4",
119  "<" => "4",
120  "=" => "4",
121  ">" => "4",
122  "@" => "4",
123  "banks1" => "4",
124  "banks2" => "4",
125  "banks3" => "4",
126  "banks8" => "4",
127  "device" => "4",
128  "ds" => "4",
129  "equ" => "4",
130  "freq" => "4",
131  "id" => "4",
132  "optionx" => "4",
133  "org" => "4",
134  "oschs" => "4",
135  "oschs1" => "4",
136  "oschs2" => "4",
137  "oschs3" => "4",
138  "oschs4" => "4",
139  "oschs5" => "4",
140  "oscin" => "4",
141  "oscxtmax" => "4",
142  "pages1" => "4",
143  "pages2" => "4",
144  "pages4" => "4",
145  "pins18" => "4",
146  "pins28" => "4",
147  "reset" => "4",
148  "stackx" => "4",
149  "stackx_optionx" => "4",
150  "sx18" => "4",
151  "sx28" => "4",
152  "sx28l" => "4",
153  "sx52" => "4",
154  "turbo" => "4",
155  "watchdog" => "4",
156  "csa" => "5",
157  "csae" => "5",
158  "csb" => "5",
159  "csbe" => "5",
160  "cse" => "5",
161  "csne" => "5",
162  "decsz" => "5",
163  "incsz" => "5",
164  "movsz" => "5",
165  "sb" => "5",
166  "sc" => "5",
167  "skip" => "5",
168  "snb" => "5",
169  "snc" => "5",
170  "snz" => "5",
171  "sz" => "5",
172  "else" => "6",
173  "endif" => "6",
174  "endm" => "6",
175  "endr" => "6",
176  "error" => "6",
177  "exitm" => "6",
178  "if" => "6",
179  "ifdef" => "6",
180  "ifndef" => "6",
181  "macro" => "6",
182  "rept" => "6");
183 
184  // Special extensions
185 
186  // Each category can specify a PHP function that returns an altered
187  // version of the keyword.
188 
189 
190 
191  $this->linkscripts = array(
192  "1" => "donothing",
193  "2" => "donothing",
194  "3" => "donothing",
195  "4" => "donothing",
196  "5" => "donothing",
197  "6" => "donothing");
198  }
199 
200 
201  public function donothing($keywordin)
202  {
203  return $keywordin;
204  }
205  }
$BEAUT_PATH
Definition: HFile_scenix.php:2
donothing($keywordin)
Create styles array
The data for the language used.
Definition: HFile.php:21