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

Public Member Functions

 HFile_ocaml ()
 
 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 7 of file HFile_ocaml.php.

Member Function Documentation

◆ donothing()

HFile_ocaml::donothing (   $keywordin)

Definition at line 155 of file HFile_ocaml.php.

156  {
157  return $keywordin;
158  }

◆ HFile_ocaml()

HFile_ocaml::HFile_ocaml ( )

Definition at line 9 of file HFile_ocaml.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14 //
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");
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  "/L10" => "",
50  "Block" => "",
51  "Comment" => "",
52  "On" => "",
53  "=" => "",
54  "(*" => "",
55  "Off" => "",
56  "*)" => "",
57  "File" => "",
58  "Extensions" => "",
59  "ML" => "",
60  "MLI" => "",
61  "and" => "1",
62  "as" => "1",
63  "asr" => "1",
64  "begin" => "1",
65  "class" => "1",
66  "closed" => "1",
67  "constraint" => "1",
68  "do" => "1",
69  "done" => "1",
70  "downto" => "1",
71  "else" => "1",
72  "end" => "1",
73  "exception" => "1",
74  "external" => "1",
75  "failwith" => "1",
76  "false" => "1",
77  "flush" => "1",
78  "for" => "1",
79  "fun" => "1",
80  "function" => "1",
81  "functor" => "1",
82  "if" => "1",
83  "in" => "1",
84  "include" => "1",
85  "inherit" => "1",
86  "incr" => "1",
87  "land" => "1",
88  "let" => "1",
89  "lor" => "1",
90  "lsl" => "1",
91  "lsr" => "1",
92  "lxor" => "1",
93  "match" => "1",
94  "method" => "1",
95  "mod" => "1",
96  "module" => "1",
97  "mutable" => "1",
98  "new" => "1",
99  "not" => "1",
100  "of" => "1",
101  "open" => "1",
102  "option" => "1",
103  "or" => "1",
104  "parser" => "1",
105  "private" => "1",
106  "ref" => "1",
107  "rec" => "1",
108  "raise" => "1",
109  "regexp" => "1",
110  "sig" => "1",
111  "struct" => "1",
112  "stdout" => "1",
113  "stdin" => "1",
114  "stderr" => "1",
115  "then" => "1",
116  "to" => "1",
117  "true" => "1",
118  "try" => "1",
119  "type" => "1",
120  "val" => "1",
121  "virtual" => "1",
122  "when" => "1",
123  "while" => "1",
124  "with" => "1",
125  "Hashtbl" => "2",
126  "Array" => "2",
127  "Data" => "2",
128  "Util" => "2",
129  "Printf" => "2",
130  "Str" => "2",
131  "array" => "3",
132  "bool" => "3",
133  "dummy" => "3",
134  "float" => "3",
135  "int" => "3",
136  "list" => "3",
137  "string" => "3",
138  "unit" => "3");
139 
140  // Special extensions
141 
142  // Each category can specify a PHP function that returns an altered
143  // version of the keyword.
144 
145 
146 
147  $this->linkscripts = array(
148  "" => "donothing",
149  "1" => "donothing",
150  "2" => "donothing",
151  "3" => "donothing");
152  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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