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