ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_ibis.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_ibis extends HFile
8  {
9  public function HFile_ibis()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // IBIS
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  "Board" => "1",
50  "Char]" => "1",
51  "Clamp" => "1",
52  "Clamp]" => "1",
53  "Current]" => "1",
54  "Data]" => "1",
55  "Description]" => "1",
56  "Designator" => "1",
57  "Groups]" => "1",
58  "List]" => "1",
59  "MOSFET]" => "1",
60  "Map]" => "1",
61  "Mapping]" => "1",
62  "Matrix]" => "1",
63  "Model" => "1",
64  "Model]" => "1",
65  "Name]" => "1",
66  "Numbers]" => "1",
67  "Of" => "1",
68  "Package" => "1",
69  "Pin" => "1",
70  "Pin]" => "1",
71  "Pins]" => "1",
72  "Pulse" => "1",
73  "Range]" => "1",
74  "Reference]" => "1",
75  "Rev]" => "1",
76  "Schedule]" => "1",
77  "Sections]" => "1",
78  "Selector]" => "1",
79  "Series]" => "1",
80  "Spec]" => "1",
81  "Submodel]" => "1",
82  "Switch" => "1",
83  "Table]" => "1",
84  "Ver]" => "1",
85  "Waveform]" => "1",
86  "[Add" => "1",
87  "[Bandwidth]" => "1",
88  "[Begin" => "1",
89  "[C" => "1",
90  "[Cac]" => "1",
91  "[Capacitance" => "1",
92  "[Comment" => "1",
93  "[Component]" => "1",
94  "[Copyright]" => "1",
95  "[Date]" => "1",
96  "[Define" => "1",
97  "[Description]" => "1",
98  "[Diff" => "1",
99  "[Disclaimer]" => "1",
100  "[Driver" => "1",
101  "[End" => "1",
102  "[End]" => "1",
103  "[Falling" => "1",
104  "[File" => "1",
105  "[GND" => "1",
106  "[IBIS" => "1",
107  "[Inductance" => "1",
108  "[L" => "1",
109  "[Lc" => "1",
110  "[Manufacturer]" => "1",
111  "[Model" => "1",
112  "[Model]" => "1",
113  "[Notes]" => "1",
114  "[Number" => "1",
115  "[OEM]" => "1",
116  "[Off]" => "1",
117  "[On]" => "1",
118  "[POWER" => "1",
119  "[Package" => "1",
120  "[Package]" => "1",
121  "[Path" => "1",
122  "[Pin" => "1",
123  "[Pin]" => "1",
124  "[Pulldown" => "1",
125  "[Pulldown]" => "1",
126  "[Pullup" => "1",
127  "[Pullup]" => "1",
128  "[R" => "1",
129  "[Rac]" => "1",
130  "[Ramp]" => "1",
131  "[Rc" => "1",
132  "[Reference" => "1",
133  "[Resistance" => "1",
134  "[Rgnd]" => "1",
135  "[Rising" => "1",
136  "[Rl" => "1",
137  "[Row]" => "1",
138  "[Rpower]" => "1",
139  "[Series" => "1",
140  "[Source]" => "1",
141  "[Submodel" => "1",
142  "[Submodel]" => "1",
143  "[TTgnd]" => "1",
144  "[TTpower]" => "1",
145  "[Temperature" => "1",
146  "[Voltage" => "1",
147  "Banded_matrix" => "2",
148  "C" => "2",
149  "C_comp" => "2",
150  "C_dut" => "2",
151  "C_fixture" => "2",
152  "C_pin" => "2",
153  "C_pkg" => "2",
154  "Cref" => "2",
155  "D_overshoot_high" => "2",
156  "D_overshoot_low" => "2",
157  "D_overshoot_time" => "2",
158  "Enable" => "2",
159  "Endfork" => "2",
160  "Fall_off_dly" => "2",
161  "Fall_on_dly" => "2",
162  "Fork" => "2",
163  "Full_matrix" => "2",
164  "L" => "2",
165  "L_dut" => "2",
166  "L_fixture" => "2",
167  "L_pin" => "2",
168  "L_pkg" => "2",
169  "Len" => "2",
170  "Model_type" => "2",
171  "Node" => "2",
172  "Off" => "2",
173  "Off_delay" => "2",
174  "On" => "2",
175  "Polarity" => "2",
176  "Pulse_high" => "2",
177  "Pulse_low" => "2",
178  "Pulse_time" => "2",
179  "R" => "2",
180  "R_dut" => "2",
181  "R_fixture" => "2",
182  "R_load" => "2",
183  "R_pin" => "2",
184  "R_pkg" => "2",
185  "Rise_off_dly" => "2",
186  "Rise_on_dly" => "2",
187  "Rref" => "2",
188  "S_overshoot_high" => "2",
189  "S_overshoot_low" => "2",
190  "Si_location" => "2",
191  "Sparse_matrix" => "2",
192  "Submodel_type" => "2",
193  "Timing_location" => "2",
194  "V_fixture" => "2",
195  "V_fixture_max" => "2",
196  "V_fixture_min" => "2",
197  "V_trigger_f" => "2",
198  "V_trigger_r" => "2",
199  "Vinh" => "2",
200  "Vinh+" => "2",
201  "Vinh-" => "2",
202  "Vinl" => "2",
203  "Vinl+" => "2",
204  "Vinl-" => "2",
205  "Vmeas" => "2",
206  "Vref" => "2",
207  "dV/dt_f" => "2",
208  "dV/dt_r" => "2",
209  "function_table_group" => "2",
210  "gnd_clamp_ref" => "2",
211  "inv_pin" => "2",
212  "model_name" => "2",
213  "pin_2" => "2",
214  "power_clamp_ref" => "2",
215  "pulldown_ref" => "2",
216  "pullup_ref" => "2",
217  "signal_name" => "2",
218  "tdelay_max" => "2",
219  "tdelay_min" => "2",
220  "tdelay_typ" => "2",
221  "vdiff" => "2",
222  "3-state" => "3",
223  "3-state_ECL" => "3",
224  "I/O" => "3",
225  "I/O_ECL" => "3",
226  "I/O_open_drain" => "3",
227  "I/O_open_sink" => "3",
228  "I/O_open_source" => "3",
229  "Input" => "3",
230  "Input_ECL" => "3",
231  "Open_drain" => "3",
232  "Open_sink" => "3",
233  "Open_source" => "3",
234  "Output" => "3",
235  "Output_ECL" => "3",
236  "Series" => "3",
237  "Series_switch" => "3",
238  "Terminator" => "3");
239 
240  // Special extensions
241 
242  // Each category can specify a PHP function that returns an altered
243  // version of the keyword.
244 
245 
246 
247  $this->linkscripts = array(
248  "1" => "donothing",
249  "2" => "donothing",
250  "3" => "donothing");
251  }
252 
253 
254  public function donothing($keywordin)
255  {
256  return $keywordin;
257  }
258  }
donothing($keywordin)
Definition: HFile_ibis.php:254
$BEAUT_PATH
Definition: HFile_ibis.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21