ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_sas.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_sas extends HFile{
6  function HFile_sas(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // SAS
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array();
28 $this->unindent = array();
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array();
33 $this->delimiters = array("~", "!", "@", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array("*");
39 $this->blockcommenton = array("/*");
40 $this->blockcommentoff = array("*/");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "_null_" => "1",
46  "abort" => "1",
47  "array" => "1",
48  "attrib" => "1",
49  "and" => "1",
50  "by" => "1",
51  "call" => "1",
52  "cards" => "1",
53  "cards4" => "1",
54  "center" => "1",
55  "data" => "1",
56  "delete" => "1",
57  "do" => "1",
58  "drop" => "1",
59  "dim" => "1",
60  "else" => "1",
61  "end" => "1",
62  "eof" => "1",
63  "file" => "1",
64  "format" => "2",
65  "formchar" => "1",
66  "footenote" => "1",
67  "footenote1" => "1",
68  "footenote2" => "1",
69  "footenote3" => "1",
70  "footenote4" => "1",
71  "footenote5" => "1",
72  "footenote6" => "1",
73  "footenote7" => "1",
74  "footenote8" => "1",
75  "footenote9" => "1",
76  "footenote10" => "1",
77  "firstobs" => "1",
78  "filename" => "1",
79  "go" => "1",
80  "if" => "1",
81  "infile" => "1",
82  "informat" => "1",
83  "input" => "1",
84  "in" => "1",
85  "keep" => "1",
86  "label" => "1",
87  "length" => "1",
88  "link" => "1",
89  "lostcard" => "1",
90  "ls" => "1",
91  "libname" => "1",
92  "left" => "1",
93  "lrecl" => "1",
94  "lastobs" => "1",
95  "merge" => "1",
96  "missing" => "1",
97  "mtrace" => "1",
98  "mprint" => "1",
99  "min" => "1",
100  "max" => "1",
101  "mlogic" => "1",
102  "missover" => "1",
103  "mdy" => "1",
104  "nonumber" => "1",
105  "nobs" => "1",
106  "nomprint" => "1",
107  "nomtrace" => "1",
108  "nosymbolgen" => "1",
109  "noovp" => "1",
110  "null" => "1",
111  "over" => "1",
112  "output" => "3",
113  "out" => "2",
114  "options" => "2",
115  "or" => "1",
116  "otherwise" => "1",
117  "put" => "1",
118  "ps" => "1",
119  "pad" => "1",
120  "rename" => "1",
121  "retain" => "1",
122  "return" => "1",
123  "run" => "1",
124  "rank" => "2",
125  "select" => "1",
126  "set" => "1",
127  "skip" => "2",
128  "stop" => "1",
129  "symbolgen" => "1",
130  "sum" => "1",
131  "source2" => "1",
132  "symput" => "1",
133  "same" => "1",
134  "substr" => "1",
135  "then" => "1",
136  "to" => "1",
137  "title" => "1",
138  "title1" => "1",
139  "title2" => "1",
140  "title3" => "1",
141  "title4" => "1",
142  "title5" => "1",
143  "title6" => "1",
144  "title7" => "1",
145  "title8" => "1",
146  "title9" => "1",
147  "title10" => "1",
148  "trim" => "1",
149  "time" => "1",
150  "until" => "1",
151  "update" => "1",
152  "where" => "1",
153  "while" => "1",
154  "window" => "1",
155  "when" => "1",
156  "as" => "2",
157  "after" => "2",
158  "append" => "2",
159  "break" => "2",
160  "calender" => "2",
161  "catalog" => "2",
162  "chart" => "2",
163  "cimport" => "2",
164  "class" => "2",
165  "contents" => "2",
166  "compare" => "2",
167  "copy" => "2",
168  "corr" => "2",
169  "cport" => "2",
170  "create" => "2",
171  "column" => "2",
172  "datasets" => "2",
173  "define" => "2",
174  "display" => "2",
175  "ERROR" => "2",
176  "endsas" => "2",
177  "forms" => "2",
178  "freq" => "3",
179  "from" => "2",
180  "group" => "2",
181  "headline" => "2",
182  "headskip" => "2",
183  "id" => "2",
184  "intervals" => "2",
185  "into" => "2",
186  "lifetest" => "3",
187  "list" => "2",
188  "line" => "2",
189  "lsmeans" => "2",
190  "method" => "2",
191  "means" => "2",
192  "model" => "2",
193  "new" => "2",
194  "noobs" => "2",
195  "noprint" => "2",
196  "n" => "2",
197  "NOTE" => "2",
198  "order" => "2",
199  "obs" => "2",
200  "outsurv" => "2",
201  "proc" => "2",
202  "print" => "2",
203  "plots" => "2",
204  "plot" => "2",
205  "pmenu" => "2",
206  "printto" => "2",
207  "pageby" => "2",
208  "report" => "2",
209  "repeated" => "2",
210  "sort" => "2",
211  "spell" => "2",
212  "strata" => "2",
213  "standard" => "2",
214  "summary" => "2",
215  "sql" => "2",
216  "split" => "2",
217  "sumby" => "2",
218  "tables" => "2",
219  "tabulate" => "2",
220  "test" => "2",
221  "timeplot" => "2",
222  "ttest" => "3",
223  "table" => "2",
224  "transpose" => "2",
225  "uniform" => "2",
226  "univariate" => "2",
227  "var" => "2",
228  "value" => "2",
229  "v5tov6" => "2",
230  "width" => "2",
231  "WARNING" => "2",
232  "aceclus" => "3",
233  "anova" => "3",
234  "calis" => "3",
235  "cancorr" => "3",
236  "candisc" => "3",
237  "catmod" => "3",
238  "cluster" => "3",
239  "corresp" => "3",
240  "discrim" => "3",
241  "factor" => "3",
242  "fastclus" => "3",
243  "genmod" => "3",
244  "glm" => "3",
245  "glmmod" => "3",
246  "inbreed" => "3",
247  "lattice" => "3",
248  "lifereg" => "3",
249  "logistic" => "3",
250  "mds" => "3",
251  "mixed" => "3",
252  "modeclus" => "3",
253  "multtest" => "3",
254  "nested" => "3",
255  "nlin" => "3",
256  "npar1way" => "3",
257  "orthoreg" => "3",
258  "phreg" => "3",
259  "plan" => "3",
260  "princomp" => "3",
261  "prinqual" => "3",
262  "reg" => "3",
263  "rsreg" => "3",
264  "score" => "3",
265  "stepdisc" => "3",
266  "template" => "3",
267  "transreg" => "3",
268  "tree" => "3",
269  "varclus" => "3",
270  "varcomp" => "3",
271  "%bquote" => "4",
272  "%display" => "4",
273  "%do" => "4",
274  "%end" => "4",
275  "%else" => "4",
276  "%eval" => "4",
277  "%goto" => "4",
278  "%global" => "4",
279  "%if" => "4",
280  "%include" => "4",
281  "%input" => "4",
282  "%keydef" => "4",
283  "%label" => "4",
284  "%let" => "4",
285  "%local" => "4",
286  "%macro" => "4",
287  "%mend" => "4",
288  "%put" => "4",
289  "%str" => "4",
290  "%scan" => "4",
291  "%syscall" => "4",
292  "%sysexec" => "4",
293  "%sysrput" => "4",
294  "%symget" => "4",
295  "%symput" => "4",
296  "%then" => "4",
297  "%to" => "4",
298  "%upcase" => "4",
299  "%until" => "4",
300  "%while" => "4",
301  "%window" => "4",
302  "MPRINT" => "4",
303  "MLOGIC" => "4",
304  "MTRACE" => "4",
305  "SYMBOLGEN" => "4");
306 
307 // Special extensions
308 
309 // Each category can specify a PHP function that returns an altered
310 // version of the keyword.
311 
312 
313 
314 $this->linkscripts = array(
315  "1" => "donothing",
316  "2" => "donothing",
317  "3" => "donothing",
318  "4" => "donothing");
319 }
320 
321 
322 function donothing($keywordin)
323 {
324  return $keywordin;
325 }
326 
327 }?>