ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_scheme.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_scheme extends HFile{
6  function HFile_scheme(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Scheme
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "blue");
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  "accumulate" => "1",
46  "aling" => "1",
47  "appearances" => "1",
48  "append" => "1",
49  "apply" => "1",
50  "assoc" => "1",
51  "before?" => "1",
52  "begin" => "1",
53  "bf" => "1",
54  "bl" => "1",
55  "butfirst" => "1",
56  "butlast" => "1",
57  "caaar" => "1",
58  "caadr" => "1",
59  "caar" => "1",
60  "cadar" => "1",
61  "caddr" => "1",
62  "cadr" => "1",
63  "car" => "1",
64  "cdaar" => "1",
65  "cdadr" => "1",
66  "cdar" => "1",
67  "cddar" => "1",
68  "cdddr" => "1",
69  "cddr" => "1",
70  "cdr" => "1",
71  "children" => "1",
72  "close-all-ports" => "1",
73  "close-input-port" => "1",
74  "close-output-port" => "1",
75  "cons" => "1",
76  "count" => "1",
77  "datum" => "1",
78  "define" => "1",
79  "display" => "1",
80  "empty?" => "1",
81  "eof-object?" => "1",
82  "error" => "1",
83  "every" => "1",
84  "filter" => "1",
85  "first" => "1",
86  "for-each" => "1",
87  "item" => "1",
88  "keep" => "1",
89  "lambda" => "1",
90  "last" => "1",
91  "length" => "1",
92  "let" => "1",
93  "list" => "1",
94  "list->vector" => "1",
95  "list-ref" => "1",
96  "list?" => "1",
97  "load" => "1",
98  "make-node" => "1",
99  "make-vector" => "1",
100  "map" => "1",
101  "member" => "1",
102  "member?" => "1",
103  "newline" => "1",
104  "null?" => "1",
105  "open-input-file" => "1",
106  "open-output-file" => "1",
107  "procedure?" => "1",
108  "quote" => "1",
109  "read" => "1",
110  "read-line" => "1",
111  "read-string" => "1",
112  "reduce" => "1",
113  "repeated" => "1",
114  "se" => "1",
115  "sentence" => "1",
116  "sentence?" => "1",
117  "show" => "1",
118  "show-line" => "1",
119  "trace" => "1",
120  "untrace" => "1",
121  "vector" => "1",
122  "vector->length" => "1",
123  "vector->list" => "1",
124  "vector-ref" => "1",
125  "vector-set!" => "1",
126  "vector?" => "1",
127  "word" => "1",
128  "word?" => "1",
129  "write" => "1",
130  "abs" => "2",
131  "ceiling" => "2",
132  "cos" => "2",
133  "even?" => "2",
134  "expt" => "2",
135  "floor" => "2",
136  "integer?" => "2",
137  "log" => "2",
138  "max" => "2",
139  "min" => "2",
140  "number?" => "2",
141  "odd?" => "2",
142  "quotient" => "2",
143  "random" => "2",
144  "remainder" => "2",
145  "round" => "2",
146  "sin" => "2",
147  "sqrt" => "2",
148  "and" => "3",
149  "boolean?" => "3",
150  "cond" => "3",
151  "if" => "3",
152  "not" => "3",
153  "or" => "3",
154  "#f" => "5",
155  "#t" => "5",
156  "\'()" => "5");
157 
158 // Special extensions
159 
160 // Each category can specify a PHP function that returns an altered
161 // version of the keyword.
162 
163 
164 
165 $this->linkscripts = array(
166  "1" => "donothing",
167  "2" => "donothing",
168  "3" => "donothing",
169  "5" => "donothing");
170 }
171 
172 
173 function donothing($keywordin)
174 {
175  return $keywordin;
176 }
177 
178 }?>