ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_autolisp.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_autolisp extends HFile
8  {
9  public function HFile_autolisp()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // AutoLISP
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  "cond" => "1",
50  "foreach" => "1",
51  "if" => "1",
52  "progn" => "1",
53  "repeat" => "1",
54  "while" => "1",
55  "*error*" => "2",
56  "alert" => "2",
57  "exit" => "2",
58  "nil" => "2",
59  "NIL" => "2",
60  "pi" => "2",
61  "quit" => "2",
62  "setq" => "2",
63  "setvar" => "2",
64  "t" => "2",
65  "T" => "2",
66  "*" => "3",
67  "+" => "3",
68  "-" => "3",
69  "//" => "3",
70  "/" => "3",
71  "/=" => "3",
72  "1+" => "3",
73  "1-" => "3",
74  "<" => "3",
75  "<=" => "3",
76  "=" => "3",
77  ">" => "3",
78  ">=" => "3",
79  "abs" => "3",
80  "and" => "3",
81  "angle" => "3",
82  "angtof" => "3",
83  "angtos" => "3",
84  "atan" => "3",
85  "atof" => "3",
86  "atoi" => "3",
87  "boundp" => "3",
88  "cos" => "3",
89  "distance" => "3",
90  "eq" => "3",
91  "equal" => "3",
92  "exp" => "3",
93  "expt" => "3",
94  "fix" => "3",
95  "float" => "3",
96  "log" => "3",
97  "logand" => "3",
98  "logior" => "3",
99  "lsh" => "3",
100  "max" => "3",
101  "min" => "3",
102  "minusp" => "3",
103  "not" => "3",
104  "null" => "3",
105  "or" => "3",
106  "sqrt" => "3",
107  "zerop" => "3",
108  "~" => "3",
109  "append" => "4",
110  "caddr" => "4",
111  "cadr" => "4",
112  "cal" => "4",
113  "car" => "4",
114  "cdddr" => "4",
115  "cdr" => "4",
116  "cons" => "4",
117  "length" => "4",
118  "list" => "4",
119  "listp" => "4",
120  "member" => "4",
121  "nth" => "4",
122  "reverse" => "4",
123  "subst" => "4",
124  "acad_colordlg" => "5",
125  "acad_helpdlg" => "5",
126  "acad_strlsort" => "5",
127  "action_tile" => "5",
128  "add_list" => "5",
129  "ads" => "5",
130  "alloc" => "5",
131  "apply" => "5",
132  "arx" => "5",
133  "arxload" => "5",
134  "ascii" => "5",
135  "atom" => "5",
136  "atoms-family" => "5",
137  "autoarxload" => "5",
138  "autoload" => "5",
139  "autoxload" => "5",
140  "boole" => "5",
141  "client_data_tile" => "5",
142  "close" => "5",
143  "command" => "5",
144  "cvunit" => "5",
145  "dictadd" => "5",
146  "dictnext" => "5",
147  "dictremove" => "5",
148  "dictrename" => "5",
149  "dictsearch" => "5",
150  "dimxtile" => "5",
151  "dimytile" => "5",
152  "done_dialog" => "5",
153  "end_image" => "5",
154  "end_list" => "5",
155  "eval" => "5",
156  "expand" => "5",
157  "fill_image" => "5",
158  "findfile" => "5",
159  "gc" => "5",
160  "gcd" => "5",
161  "get_attr" => "5",
162  "get_tile" => "5",
163  "getangle" => "5",
164  "getcfg" => "5",
165  "getcorner" => "5",
166  "getdist" => "5",
167  "getenv" => "5",
168  "getfiled" => "5",
169  "getint" => "5",
170  "getkword" => "5",
171  "getorient" => "5",
172  "getpoint" => "5",
173  "getreal" => "5",
174  "getstring" => "5",
175  "getvar" => "5",
176  "graphscr" => "5",
177  "grclear" => "5",
178  "grdraw" => "5",
179  "grread" => "5",
180  "grtext" => "5",
181  "grvecs" => "5",
182  "handent" => "5",
183  "help" => "5",
184  "initget" => "5",
185  "inters" => "5",
186  "lambda" => "5",
187  "last" => "5",
188  "load" => "5",
189  "load_dialog" => "5",
190  "mapcar" => "5",
191  "mem" => "5",
192  "menucmd" => "5",
193  "menugroup" => "5",
194  "mode_tile" => "5",
195  "namedobjdict" => "5",
196  "new_dialog" => "5",
197  "numberp" => "5",
198  "open" => "5",
199  "osnap" => "5",
200  "pause" => "5",
201  "polar" => "5",
202  "prin1" => "5",
203  "princ" => "5",
204  "print" => "5",
205  "prompt" => "5",
206  "quote" => "5",
207  "read" => "5",
208  "read-char" => "5",
209  "read-line" => "5",
210  "redraw" => "5",
211  "regapp" => "5",
212  "rem" => "5",
213  "rtos" => "5",
214  "set" => "5",
215  "set_tile" => "5",
216  "setcfg" => "5",
217  "setfunhelp" => "5",
218  "setview" => "5",
219  "sin" => "5",
220  "slide_image" => "5",
221  "snvalid" => "5",
222  "start_app" => "5",
223  "start_dialog" => "5",
224  "start_image" => "5",
225  "start_list" => "5",
226  "tablet" => "5",
227  "term_dialog" => "5",
228  "terpri" => "5",
229  "textbox" => "5",
230  "textpage" => "5",
231  "textscr" => "5",
232  "trace" => "5",
233  "trans" => "5",
234  "type" => "5",
235  "unload_dialog" => "5",
236  "untrace" => "5",
237  "vector_image" => "5",
238  "ver" => "5",
239  "vmon" => "5",
240  "vports" => "5",
241  "wcmatch" => "5",
242  "write-char" => "5",
243  "write-line" => "5",
244  "xdroom" => "5",
245  "xdsize" => "5",
246  "xload" => "5",
247  "xunload" => "5",
248  "assoc" => "6",
249  "chr" => "6",
250  "distof" => "6",
251  "entdel" => "6",
252  "entget" => "6",
253  "entlast" => "6",
254  "entmake" => "6",
255  "entmakex" => "6",
256  "entmod" => "6",
257  "entnext" => "6",
258  "entsel" => "6",
259  "entupd" => "6",
260  "itoa" => "6",
261  "nentsel" => "6",
262  "nentselp" => "6",
263  "ssadd" => "6",
264  "ssdel" => "6",
265  "ssget" => "6",
266  "ssgetfirst" => "6",
267  "sslength" => "6",
268  "ssmemb" => "6",
269  "ssname" => "6",
270  "ssnamex" => "6",
271  "sssetfirst" => "6",
272  "strcase" => "6",
273  "strcat" => "6",
274  "strlen" => "6",
275  "substr" => "6",
276  "tblnext" => "6",
277  "tblobjname" => "6",
278  "tblsearch" => "6");
279 
280  // Special extensions
281 
282  // Each category can specify a PHP function that returns an altered
283  // version of the keyword.
284 
285 
286 
287  $this->linkscripts = array(
288  "1" => "donothing",
289  "2" => "donothing",
290  "3" => "donothing",
291  "4" => "donothing",
292  "5" => "donothing",
293  "6" => "donothing");
294  }
295 
296 
297  public function donothing($keywordin)
298  {
299  return $keywordin;
300  }
301  }
donothing($keywordin)
$BEAUT_PATH
Create styles array
The data for the language used.
Definition: HFile.php:21