ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_VerityStyle.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_VerityStyle extends HFile
8  {
9  public function HFile_VerityStyle()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Verity Style File
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue");
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  "$$" => "1",
50  "$control:" => "1",
51  "$define" => "1",
52  "$endif" => "1",
53  "$include" => "1",
54  "$ifdef" => "1",
55  "$subst:" => "1",
56  "BulkLoad" => "2",
57  "default" => "2",
58  "false" => "2",
59  "FastSearch" => "2",
60  "guess" => "2",
61  "NewsFeedIdx" => "2",
62  "NewsFeedOpt" => "2",
63  "no" => "2",
64  "none" => "2",
65  "ReadOnly" => "2",
66  "skip" => "2",
67  "true" => "2",
68  "yes" => "2",
69  "8859" => "2",
70  "agents:" => "3",
71  "agt:" => "3",
72  "autorec:" => "3",
73  "autoval:" => "3",
74  "collection:" => "3",
75  "config:" => "3",
76  "constant:" => "3",
77  "copy:" => "3",
78  "data-table:" => "3",
79  "dda:" => "3",
80  "default:" => "3",
81  "define:" => "3",
82  "descriptor:" => "3",
83  "dft:" => "3",
84  "dlv:" => "3",
85  "drivers:" => "3",
86  "dispatch:" => "3",
87  "field:" => "3",
88  "fixwidth:" => "3",
89  "gateway:" => "3",
90  "lex:" => "3",
91  "mode:" => "3",
92  "policy:" => "3",
93  "repository:" => "3",
94  "session:" => "3",
95  "table:" => "3",
96  "token:" => "3",
97  "type:" => "3",
98  "types:" => "3",
99  "user:" => "3",
100  "varwidth:" => "3",
101  "vdkwatch:" => "3",
102  "worm:" => "3",
103  "zone-begin:" => "3",
104  "zone-end:" => "3",
105  "date" => "4",
106  "EOS" => "4",
107  "multiRow" => "4",
108  "multiRowOrderBy" => "4",
109  "multiRowCol" => "4",
110  "multiRowFormat" => "4",
111  "NEWLINE" => "4",
112  "PARA" => "4",
113  "PUNCT" => "4",
114  "signed-integer" => "4",
115  "sirepath" => "4",
116  "TAB" => "4",
117  "text" => "4",
118  "unsigned-integer" => "4",
119  "WHITE" => "4",
120  "WORD" => "4",
121  "_hexdata" => "5",
122  "_implied_size" => "5",
123  "action" => "5",
124  "alias" => "5",
125  "batch" => "5",
126  "charset" => "5",
127  "collection" => "5",
128  "config" => "5",
129  "createok" => "5",
130  "def-charset" => "5",
131  "disk_free_interval" => "5",
132  "fill" => "5",
133  "filter" => "5",
134  "format-filter" => "5",
135  "globalstyle" => "5",
136  "goaldocs" => "5",
137  "gwkey" => "5",
138  "gwtable" => "5",
139  "hidden" => "5",
140  "housekeeping_interval" => "5",
141  "indexed" => "5",
142  "inherit" => "5",
143  "instance_ceiling" => "5",
144  "instance_floor" => "5",
145  "lock_retry_count" => "5",
146  "maintenance_interval" => "5",
147  "maxdocs" => "5",
148  "max_new_docs" => "5",
149  "max_new_work" => "5",
150  "max-records" => "5",
151  "merge_fully" => "5",
152  "merge_parts" => "5",
153  "minmax" => "5",
154  "minparts" => "5",
155  "ngram_index" => "5",
156  "num-records" => "5",
157  "offset" => "5",
158  "outlevel" => "5",
159  "packed" => "5",
160  "partition_max_size" => "5",
161  "pidfile" => "5",
162  "post" => "5",
163  "regular" => "5",
164  "spanning_index" => "5",
165  "startupKB" => "5",
166  "statefile" => "5",
167  "xor" => "5");
168 
169  // Special extensions
170 
171  // Each category can specify a PHP function that returns an altered
172  // version of the keyword.
173 
174 
175 
176  $this->linkscripts = array(
177  "1" => "donothing",
178  "2" => "donothing",
179  "3" => "donothing",
180  "4" => "donothing",
181  "5" => "donothing");
182  }
183 
184 
185  public function donothing($keywordin)
186  {
187  return $keywordin;
188  }
189  }
Create styles array
The data for the language used.
Definition: HFile.php:21
$BEAUT_PATH