ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_python Class Reference
+ Inheritance diagram for HFile_python:
+ Collaboration diagram for HFile_python:

Public Member Functions

 HFile_python ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 8 of file HFile_python.php.

Member Function Documentation

◆ donothing()

HFile_python::donothing (   $keywordin)

Definition at line 337 of file HFile_python.php.

338  {
339  return $keywordin;
340  }

◆ HFile_python()

HFile_python::HFile_python ( )

Definition at line 10 of file HFile_python.php.

References array.

11  {
12  $this->HFile();
13 
14  /*************************************/
15  // Beautifier Highlighting Configuration File
16  // Python
17  /*************************************/
18  // Flags
19 
20  $this->nocase = "0";
21  $this->notrim = "1";
22  $this->perl = "0";
23 
24  // Colours
25 
26  $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple", "gray");
27  $this->quotecolour = "blue";
28  $this->blockcommentcolour = "green";
29  $this->linecommentcolour = "green";
30 
31  // Indent Strings
32 
33  $this->indent = array();
34  $this->unindent = array();
35 
36  // String characters and delimiters
37 
38  $this->stringchars = array();
39  $this->delimiters = array("[", "]", "{", "}", "(", ")", "<", ">", "=", "\"", "'", ".", ",", ":", "+", " ", " ");
40  $this->escchar = "";
41 
42  // Comment settings
43 
44  $this->linecommenton = array("#");
45  $this->blockcommenton = array("");
46  $this->blockcommentoff = array("");
47 
48  // Keywords (keyword mapping to colour number)
49 
50  $this->keywords = array(
51  "and" => "1",
52  "assert" => "1",
53  "break" => "1",
54  "class" => "1",
55  "continue" => "1",
56  "def" => "1",
57  "del" => "1",
58  "elif" => "1",
59  "else" => "1",
60  "except" => "1",
61  "exec" => "1",
62  "finally" => "1",
63  "for" => "1",
64  "from" => "1",
65  "global" => "1",
66  "if" => "1",
67  "import" => "1",
68  "in" => "1",
69  "is" => "1",
70  "lambda" => "1",
71  "map" => "1",
72  "not" => "1",
73  "None" => "1",
74  "or" => "1",
75  "pass" => "1",
76  "print" => "1",
77  "raise" => "1",
78  "range" => "1",
79  "return" => "1",
80  "try" => "1",
81  "while" => "1",
82  "abs" => "2",
83  "apply" => "2",
84  "callable" => "2",
85  "chr" => "2",
86  "cmp" => "2",
87  "coerce" => "2",
88  "compile" => "2",
89  "complex" => "2",
90  "delattr" => "2",
91  "dir" => "2",
92  "divmod" => "2",
93  "eval" => "2",
94  "execfile" => "2",
95  "filter" => "2",
96  "float" => "2",
97  "getattr" => "2",
98  "globals" => "2",
99  "group" => "2",
100  "hasattr" => "2",
101  "hash" => "2",
102  "hex" => "2",
103  "id" => "2",
104  "input" => "2",
105  "int" => "2",
106  "intern" => "2",
107  "isinstance" => "2",
108  "issubclass" => "2",
109  "joinfields" => "2",
110  "len" => "2",
111  "list" => "2",
112  "local" => "2",
113  "long" => "2",
114  "max" => "2",
115  "min" => "2",
116  "match" => "2",
117  "oct" => "2",
118  "open" => "2",
119  "ord" => "2",
120  "pow" => "2",
121  "raw_input" => "2",
122  "reduce" => "2",
123  "reload" => "2",
124  "repr" => "2",
125  "round" => "2",
126  "search" => "2",
127  "setattr" => "2",
128  "slice" => "2",
129  "str" => "2",
130  "splitfields" => "2",
131  "tuple" => "2",
132  "type" => "2",
133  "vars" => "2",
134  "xrange" => "2",
135  "__import__" => "2",
136  "__abs__" => "3",
137  "__add__" => "3",
138  "__and__" => "3",
139  "__call__" => "3",
140  "__cmp__" => "3",
141  "__coerce__" => "3",
142  "__del__" => "3",
143  "__delattr__" => "3",
144  "__delitem__" => "3",
145  "__delslice__" => "3",
146  "__div__" => "3",
147  "__divmod__" => "3",
148  "__float__" => "3",
149  "__getattr__" => "3",
150  "__getitem__" => "3",
151  "__getslice__" => "3",
152  "__hash__" => "3",
153  "__hex__" => "3",
154  "__invert__" => "3",
155  "__int__" => "3",
156  "__init__" => "3",
157  "__len__" => "3",
158  "__long__" => "3",
159  "__lshift__" => "3",
160  "__mod__" => "3",
161  "__mul__" => "3",
162  "__neg__" => "3",
163  "__nonzero__" => "3",
164  "__oct__" => "3",
165  "__or__" => "3",
166  "__pos__" => "3",
167  "__pow__" => "3",
168  "__radd__" => "3",
169  "__rdiv__" => "3",
170  "__rdivmod__" => "3",
171  "__rmod__" => "3",
172  "__rpow__" => "3",
173  "__rlshift__" => "3",
174  "__rrshift__" => "3",
175  "__rshift__" => "3",
176  "__rsub__" => "3",
177  "__rmul__" => "3",
178  "__repr__" => "3",
179  "__rand__" => "3",
180  "__rxor__" => "3",
181  "__ror__" => "3",
182  "__setattr__" => "3",
183  "__setitem__" => "3",
184  "__setslice__" => "3",
185  "__str__" => "3",
186  "__sub__" => "3",
187  "__xor__" => "3",
188  "__bases__" => "4",
189  "__class__" => "4",
190  "__dict__" => "4",
191  "__methods__" => "4",
192  "__members__" => "4",
193  "__name__" => "4",
194  "__version__" => "4",
195  "ArithmeticError" => "5",
196  "AssertionError" => "5",
197  "AttributeError" => "5",
198  "EOFError" => "5",
199  "Exception" => "5",
200  "FloatingPointError" => "5",
201  "IOError" => "5",
202  "ImportError" => "5",
203  "IndexError" => "5",
204  "KeyError" => "5",
205  "KeyboardInterrupt" => "5",
206  "LookupError" => "5",
207  "MemoryError" => "5",
208  "NameError" => "5",
209  "OverflowError" => "5",
210  "RuntimeError" => "5",
211  "StandardError" => "5",
212  "SyntaxError" => "5",
213  "SystemError" => "5",
214  "SystemExit" => "5",
215  "TypeError" => "5",
216  "ValueError" => "5",
217  "ZeroDivisionError" => "5",
218  "AST" => "6",
219  "BaseHTTPServer" => "6",
220  "Bastion" => "6",
221  "cmd" => "6",
222  "commands" => "6",
223  "compileall" => "6",
224  "copy" => "6",
225  "CGIHTTPServer" => "6",
226  "Complex" => "6",
227  "dbhash" => "6",
228  "dircmp" => "6",
229  "dis" => "6",
230  "dospath" => "6",
231  "dumbdbm" => "6",
232  "emacs" => "6",
233  "find" => "6",
234  "fmt" => "6",
235  "fnmatch" => "7",
236  "ftplib" => "6",
237  "getopt" => "6",
238  "glob" => "6",
239  "gopherlib" => "6",
240  "grep" => "6",
241  "htmllib" => "6",
242  "httplib" => "6",
243  "ihooks" => "6",
244  "imghdr" => "6",
245  "linecache" => "6",
246  "lockfile" => "6",
247  "macpath" => "6",
248  "macurl2path" => "6",
249  "mailbox" => "6",
250  "mailcap" => "6",
251  "mimetools" => "6",
252  "mimify" => "6",
253  "mutex" => "6",
254  "math" => "6",
255  "Mimewriter" => "6",
256  "newdir" => "6",
257  "ni" => "6",
258  "nntplib" => "6",
259  "ntpath" => "6",
260  "nturl2path" => "6",
261  "os" => "6",
262  "ospath" => "6",
263  "pdb" => "6",
264  "pickle" => "6",
265  "pipes" => "6",
266  "poly" => "6",
267  "popen2" => "6",
268  "posixfile" => "6",
269  "posixpath" => "6",
270  "profile" => "6",
271  "pstats" => "6",
272  "pyclbr" => "6",
273  "Para" => "6",
274  "quopri" => "6",
275  "Queue" => "6",
276  "rand" => "6",
277  "random" => "6",
278  "regex" => "6",
279  "regsub" => "6",
280  "rfc822" => "6",
281  "sched" => "6",
282  "sgmllib" => "6",
283  "shelve" => "6",
284  "site" => "6",
285  "sndhdr" => "6",
286  "string" => "6",
287  "sys" => "6",
288  "snmp" => "6",
289  "SimpleHTTPServer" => "6",
290  "StringIO" => "6",
291  "SocketServer" => "6",
292  "tb" => "6",
293  "tempfile" => "6",
294  "toaiff" => "6",
295  "token" => "6",
296  "tokenize" => "6",
297  "traceback" => "6",
298  "tty" => "6",
299  "types" => "6",
300  "tzparse" => "6",
301  "Tkinter" => "6",
302  "urllib" => "6",
303  "urlparse" => "6",
304  "util" => "6",
305  "uu" => "6",
306  "UserDict" => "6",
307  "UserList" => "6",
308  "wave" => "6",
309  "whatsound" => "6",
310  "whichdb" => "6",
311  "whrandom" => "6",
312  "xdrlib" => "6",
313  "zmod" => "6",
314  "array" => "7",
315  "struct" => "7",
316  "self" => "7");
317 
318  // Special extensions
319 
320  // Each category can specify a PHP function that returns an altered
321  // version of the keyword.
322 
323 
324 
325  $this->linkscripts = array(
326  "1" => "donothing",
327  "2" => "donothing",
328  "3" => "donothing",
329  "4" => "donothing",
330  "5" => "donothing",
331  "6" => "donothing",
332  "7" => "donothing");
333  }
Create styles array
The data for the language used.
Definition: HFile.php:21

The documentation for this class was generated from the following file: