ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_tcltk.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_tcltk extends HFile{
6  function HFile_tcltk(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Tcl/tk
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", "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  "after" => "1",
46  "append" => "1",
47  "array" => "1",
48  "auto_execok" => "1",
49  "auto_load" => "1",
50  "auto_mkindex" => "1",
51  "auto_reset" => "1",
52  "bgerror" => "1",
53  "break" => "1",
54  "case" => "1",
55  "catch" => "1",
56  "cd" => "1",
57  "clock" => "1",
58  "close" => "1",
59  "concat" => "1",
60  "continue" => "1",
61  "eof" => "1",
62  "error" => "1",
63  "eval" => "1",
64  "exec" => "1",
65  "exit" => "1",
66  "expr" => "1",
67  "else" => "1",
68  "elseif" => "1",
69  "fblocked" => "1",
70  "fconfigure" => "1",
71  "file" => "1",
72  "fileevent" => "1",
73  "flush" => "1",
74  "for" => "1",
75  "foreach" => "1",
76  "format" => "1",
77  "gets" => "1",
78  "glob" => "1",
79  "global" => "1",
80  "history" => "1",
81  "if" => "1",
82  "incr" => "1",
83  "info" => "1",
84  "interp" => "1",
85  "join" => "1",
86  "lappend" => "1",
87  "lindex" => "1",
88  "linsert" => "1",
89  "list" => "1",
90  "llength" => "1",
91  "load" => "1",
92  "lrange" => "1",
93  "lreplace" => "1",
94  "lsearch" => "1",
95  "lsort" => "1",
96  "open" => "1",
97  "package" => "1",
98  "parray" => "1",
99  "pid" => "1",
100  "proc" => "1",
101  "puts" => "1",
102  "pwd" => "1",
103  "read" => "1",
104  "regexp" => "1",
105  "regsub" => "1",
106  "rename" => "1",
107  "return" => "1",
108  "scan" => "1",
109  "seek" => "1",
110  "set" => "1",
111  "socket" => "1",
112  "source" => "1",
113  "split" => "1",
114  "string" => "1",
115  "subst" => "1",
116  "switch" => "1",
117  "tell" => "1",
118  "time" => "1",
119  "trace" => "1",
120  "tcl_endOfWord" => "1",
121  "tcl_startOfNextWord" => "1",
122  "tcl_startOfPreviousWord" => "1",
123  "tcl_wordBreakAfter" => "1",
124  "tcl_wordBreakBefore" => "1",
125  "unknown" => "1",
126  "unset" => "1",
127  "update" => "1",
128  "uplevel" => "1",
129  "upvar" => "1",
130  "vwait" => "1",
131  "while" => "1",
132  "auto_execs" => "2",
133  "auto_index" => "2",
134  "auto_noexec" => "2",
135  "auto_noload" => "2",
136  "auto_path" => "2",
137  "env" => "2",
138  "ErrorCode" => "2",
139  "ErrorInfo" => "2",
140  "tcl_library" => "2",
141  "tcl_patchLevel" => "2",
142  "tcl_pkgPath" => "2",
143  "tcl_platform" => "2",
144  "tcl_precision" => "2",
145  "tcl_rcFileName" => "2",
146  "tcl_rcRsrcName" => "2",
147  "tcl_version" => "2",
148  "tcl_nonwordchars" => "2",
149  "tcl_wordchars" => "2",
150  "unknown_active" => "2",
151  "bell" => "3",
152  "bind" => "3",
153  "bindtags" => "3",
154  "bitmap" => "3",
155  "button" => "3",
156  "canvas" => "3",
157  "checkbutton" => "3",
158  "clipboard" => "3",
159  "destroy" => "3",
160  "entry" => "3",
161  "event" => "3",
162  "focus" => "3",
163  "frame" => "3",
164  "grab" => "3",
165  "grid" => "3",
166  "image" => "3",
167  "label" => "3",
168  "listbox" => "3",
169  "lower" => "3",
170  "menu" => "3",
171  "menubutton" => "3",
172  "message" => "3",
173  "option" => "3",
174  "pack" => "3",
175  "photo" => "3",
176  "place" => "3",
177  "radiobutton" => "3",
178  "raise" => "3",
179  "scale" => "3",
180  "scrollbar" => "3",
181  "selection" => "3",
182  "send" => "3",
183  "text" => "3",
184  "tk" => "3",
185  "tk_bindForTraversal" => "3",
186  "tk_bisque" => "3",
187  "tk_chooseColor" => "3",
188  "tk_dialog" => "3",
189  "tk_focusFollowsMouse" => "3",
190  "tk_focusNext" => "3",
191  "tk_focusPrev" => "3",
192  "tk_getOpenFile" => "3",
193  "tk_getSaveFile" => "3",
194  "tk_menuBar" => "3",
195  "tk_messageBox" => "3",
196  "tk_optionMenu" => "3",
197  "tk_popup" => "3",
198  "tk_setPalette" => "3",
199  "tkerror" => "3",
200  "tkvars" => "3",
201  "tkwait" => "3",
202  "toplevel" => "3",
203  "winfo" => "3",
204  "wm" => "3",
205  "**" => "4",
206  "$" => "4");
207 
208 // Special extensions
209 
210 // Each category can specify a PHP function that returns an altered
211 // version of the keyword.
212 
213 
214 
215 $this->linkscripts = array(
216  "1" => "donothing",
217  "2" => "donothing",
218  "3" => "donothing",
219  "4" => "donothing");
220 }
221 
222 
223 function donothing($keywordin)
224 {
225  return $keywordin;
226 }
227 
228 }?>