ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_bm.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_bm extends HFile{
6  function HFile_bm(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // BM Scripts
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  "ADVANCE" => "1",
46  "AGGREGATE_MEMBER" => "1",
47  "ACTION" => "1",
48  "BASE_MODEL" => "1",
49  "COMMIT" => "1",
50  "COMMIT_ZERO" => "1",
51  "COMPUTED_ITEM" => "1",
52  "COMPUTED_MEMBER" => "1",
53  "CYCLE" => "1",
54  "CONVERSION" => "1",
55  "HANGE_MODEL" => "1",
56  "DIMENSION" => "1",
57  "DYNAMIC_SPAN" => "1",
58  "DECOMMISSION" => "1",
59  "DELETE" => "1",
60  "DELETE_TASK" => "1",
61  "DELETE_JOB" => "1",
62  "END_COMMAND" => "1",
63  "FILES" => "1",
64  "ITEM" => "1",
65  "JOIN_MODEL" => "1",
66  "JOB" => "1",
67  "LOAD_CONVERSION_DATA" => "1",
68  "LOAD_ITEMS" => "1",
69  "LOAD_TIME" => "1",
70  "LOAD_CYCLES" => "1",
71  "LOAD_DIMENSION" => "1",
72  "LOAD_MODEL" => "1",
73  "MEMBER" => "1",
74  "MODEL" => "1",
75  "NULLIFY" => "1",
76  "PERIOD" => "1",
77  "QUEUE_JOB" => "1",
78  "ROUTE_FILE" => "1",
79  "RUN_TASK" => "1",
80  "SPECIALS" => "1",
81  "SPANS" => "1",
82  "START_JOB_QUEUE" => "1",
83  "STOP_JOB_QUEUE" => "1",
84  "SPAN" => "1",
85  "TIME" => "1",
86  "TASK" => "1",
87  "UNIT" => "1",
88  "AGGREGATION" => "2",
89  "AVERAGE" => "2",
90  "AGGREGATE_MEMBERS" => "2",
91  "ADDITIVE_ONLY" => "2",
92  "ASCII_EXTRACTOR" => "2",
93  "ACCUMULATOR" => "2",
94  "BREAK_TIME" => "2",
95  "BAD_OUTPUTS" => "2",
96  "CYCLES" => "2",
97  "CONSOLIDATION" => "2",
98  "COMPUTED_MEMBERS" => "2",
99  "COMMIT_VERSION" => "2",
100  "CYCLE_DIMENSION" => "2",
101  "CONVERTER" => "2",
102  "DISPLAYS" => "2",
103  "DYNAMIC_SPANS" => "2",
104  "DIMENSIONS" => "2",
105  "DEFAULT" => "2",
106  "DIMENSION_ONLY" => "2",
107  "DISPLAY_SET" => "2",
108  "UPLICATOR" => "2",
109  "END_TRANSFORMER" => "2",
110  "EXPANDER" => "2",
111  "EXCLUDE" => "2",
112  "FULL" => "2",
113  "FLATTEN" => "2",
114  "FIXED_EXTRACTOR" => "2",
115  "FIELDER" => "2",
116  "GOOD_OUTPUTS" => "2",
117  "GDL" => "2",
118  "HISTORY" => "2",
119  "HIERARCHIC_SUBTRACTIVE" => "2",
120  "HIERARCHIC_ONLY" => "2",
121  "HOLDER" => "2",
122  "ITEMS" => "2",
123  "ITEM_HIERARCHY" => "2",
124  "INCLUDE_ALL" => "2",
125  "INCLUDE" => "2",
126  "INVERTED" => "2",
127  "INCREMENTAL" => "2",
128  "ITEM_DIMENSION" => "2",
129  "INCYCLE_DIMENSION" => "2",
130  "INCLUDE_ONLY" => "2",
131  "JOINER" => "2",
132  "KEYED" => "2",
133  "LIMITED" => "2",
134  "LOAD_MODEL_INCREMENTAL" => "2",
135  "LOGGER" => "2",
136  "MEMBERS" => "2",
137  "MODELS" => "2",
138  "NAME" => "2",
139  "NORMAL" => "2",
140  "NO" => "2",
141  "NON_KEYED" => "2",
142  "NONE" => "2",
143  "NEW_VERSION" => "2",
144  "NULLIFY_CURRENT" => "2",
145  "NULLIFY_FROM" => "2",
146  "PRECOMPUTE" => "2",
147  "PERIODS" => "2",
148  "PIVOT" => "2",
149  "QUALIFIER" => "2",
150  "RETAINED" => "2",
151  "RESTATED" => "2",
152  "REPEATED" => "2",
153  "RUN_TASK_STEP" => "2",
154  "SYNOYMS" => "2",
155  "SUBTRACTIVE_ONLY" => "2",
156  "SERVICE" => "2",
157  "SQL_EXTRACTOR" => "2",
158  "STRIPPER" => "2",
159  "TARGET" => "2",
160  "TIME_LATEST" => "2",
161  "TIME_DIMENSION" => "2",
162  "TOP_INCYCLE" => "2",
163  "TRANSFORMER" => "2",
164  "TIMER" => "2",
165  "YES" => "2",
166  "ACROSS_FIELD" => "3",
167  "BY_FIELD" => "3",
168  "COPY" => "3",
169  "CYCLE_FIELD" => "3",
170  "DATA" => "3",
171  "DEFAULT_ALLOWED" => "3",
172  "ERROR" => "3",
173  "FILE" => "3",
174  "FIELDS" => "3",
175  "FIELD_OR_UNIT" => "3",
176  "FIELD" => "3",
177  "INPUT_0" => "3",
178  "INPUT_1" => "3",
179  "IGNORE" => "3",
180  "ITEM_SPECIFIER" => "3",
181  "LEVEL" => "3",
182  "META" => "3",
183  "NUMERIC" => "3",
184  "OUTPUTS" => "3",
185  "OUTPUT_0" => "3",
186  "OUTPUT_1" => "3",
187  "PASSWORD" => "3",
188  "PREPEND" => "3",
189  "PERIOD_FIELD" => "3",
190  "QUERY" => "3",
191  "SEPARATOR" => "3",
192  "SHORT_RECORDS" => "3",
193  "SOURCE" => "3",
194  "TO" => "3",
195  "TEXT" => "3",
196  "USER" => "3",
197  "VALUE" => "3",
198  "WARNING" => "3",
199  "BUSINESS" => "4",
200  "END" => "4",
201  "EXCLUSIVE" => "4",
202  "NEW" => "4",
203  "SHARED" => "4",
204  "SP" => "4");
205 
206 // Special extensions
207 
208 // Each category can specify a PHP function that returns an altered
209 // version of the keyword.
210 
211 
212 
213 $this->linkscripts = array(
214  "1" => "donothing",
215  "2" => "donothing",
216  "3" => "donothing",
217  "4" => "donothing");
218 }
219 
220 
221 function donothing($keywordin)
222 {
223  return $keywordin;
224 }
225 
226 }?>