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

Public Member Functions

 HFile_awk ()
 
 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_awk.php.

Member Function Documentation

◆ donothing()

HFile_awk::donothing (   $keywordin)

Definition at line 133 of file HFile_awk.php.

134  {
135  return $keywordin;
136  }

◆ HFile_awk()

HFile_awk::HFile_awk ( )

Definition at line 9 of file HFile_awk.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // AWK Script
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", "brown");
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  "atan2" => "1",
50  "break" => "1",
51  "BEGIN" => "1",
52  "close" => "1",
53  "continue" => "1",
54  "cos" => "1",
55  "delete" => "1",
56  "do" => "1",
57  "else" => "1",
58  "exp" => "1",
59  "exit" => "1",
60  "END" => "1",
61  "for" => "1",
62  "function" => "1",
63  "getline" => "1",
64  "gsub" => "1",
65  "if" => "1",
66  "index" => "1",
67  "int" => "1",
68  "length" => "1",
69  "local" => "1",
70  "log" => "1",
71  "match" => "1",
72  "next" => "1",
73  "print" => "1",
74  "printf" => "1",
75  "rand" => "1",
76  "return" => "1",
77  "sin" => "1",
78  "split" => "1",
79  "sprintf" => "1",
80  "sqrt" => "1",
81  "srand" => "1",
82  "sub" => "1",
83  "substr" => "1",
84  "system" => "1",
85  "tolower" => "1",
86  "toupper" => "1",
87  "while" => "1",
88  "ARGC" => "2",
89  "ARGV" => "2",
90  "CONVFMT" => "2",
91  "ENVIRON" => "2",
92  "FILENAME" => "2",
93  "FNR" => "2",
94  "FS" => "2",
95  "NF" => "2",
96  "NR" => "2",
97  "OFMT" => "2",
98  "OFS" => "2",
99  "ORS" => "2",
100  "RLENGTH" => "2",
101  "RS" => "2",
102  "RSTART" => "2",
103  "SUBSEP" => "2",
104  "+" => "4",
105  "-" => "4",
106  "=" => "4",
107  "//" => "4",
108  "/" => "4",
109  "%" => "4",
110  "&" => "4",
111  ">" => "4",
112  "<" => "4",
113  "^" => "4",
114  "!" => "4",
115  "|" => "4",
116  "$" => "4",
117  "*" => "4");
118 
119  // Special extensions
120 
121  // Each category can specify a PHP function that returns an altered
122  // version of the keyword.
123 
124 
125 
126  $this->linkscripts = array(
127  "1" => "donothing",
128  "2" => "donothing",
129  "4" => "donothing");
130  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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