ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_sysedge.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_sysedge extends HFile
8  {
9  public function HFile_sysedge()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Empire SystemEdge
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  "community" => "1",
50  "extension" => "1",
51  "emphistory" => "1",
52  "monitor" => "1",
53  "no_authen_traps" => "1",
54  "no_usergroup_table" => "1",
55  "no_who_table" => "1",
56  "no_remoteshell_group" => "1",
57  "no_serial_status" => "1",
58  "no_stat_nfs_filesystems" => "1",
59  "no_process_sets" => "1",
60  "no_actions" => "1",
61  "no_stat_floppy" => "1",
62  "no_process_group" => "1",
63  "no_probe_disks" => "1",
64  "ntregperf" => "1",
65  "syscontact" => "1",
66  "sysdescr" => "1",
67  "sysedge_plugin" => "1",
68  "syslocation" => "1",
69  "sysedge_debug" => "1",
70  "syslog_facility" => "1",
71  "syslog_logfile" => "1",
72  "watch" => "1",
73  "application" => "2",
74  "counter" => "2",
75  "filesystem" => "2",
76  "gauge" => "2",
77  "integer" => "2",
78  "ipaddress" => "2",
79  "internalipaddress" => "2",
80  "externalipaddress" => "2",
81  "key" => "2",
82  "logfile" => "2",
83  "ntevent" => "2",
84  "octetstring" => "2",
85  "objectid" => "2",
86  "oid" => "2",
87  "object" => "2",
88  "process" => "2",
89  "perfinstance" => "2",
90  "performance" => "2",
91  "read-write" => "2",
92  "read-only" => "2",
93  "readwrite" => "2",
94  "readonly" => "2",
95  "registry" => "2",
96  "security" => "2",
97  "system" => "2",
98  "traps" => "2",
99  "timeticks" => "2",
100  "value" => "2",
101  "absolute" => "3",
102  "all" => "3",
103  "error" => "3",
104  "failure" => "3",
105  "information" => "3",
106  "delta" => "3",
107  "devdevice" => "3",
108  "devmntpt" => "3",
109  "devbsize" => "3",
110  "devtblks" => "3",
111  "devfblks" => "3",
112  "devtfiles" => "3",
113  "devffiles" => "3",
114  "devmaxnamelen" => "3",
115  "devtype" => "3",
116  "devfsid" => "3",
117  "devunmount" => "3",
118  "devcapacity" => "3",
119  "devinodecapacity" => "3",
120  "success" => "3",
121  "warning" => "3",
122  "**" => "3",
123  "0x" => "3",
124  "nop" => "4",
125  "ne" => "4",
126  "gt" => "4",
127  "ge" => "4",
128  "le" => "4",
129  "lt" => "4",
130  "eq" => "4",
131  "=" => "4",
132  ">" => "4",
133  ">=" => "4",
134  "<" => "4",
135  "<=" => "4",
136  "!" => "4",
137  "!=" => "4",
138  "reg_dword" => "5",
139  "reg_sz" => "5",
140  "reg_expand_sz" => "5",
141  "reg_mult_sz" => "5",
142  "perf_counter_counter" => "5",
143  "perf_counter_rawcount" => "5",
144  "perf_counter_rawcount_hex" => "5",
145  "perf_sample_counter" => "5",
146  "perf_counter_timer" => "5",
147  "perf_counter_bulk_count" => "5",
148  "perf_counter_large_rawcount" => "5",
149  "perf_counter_large_rawcount_hex" => "5",
150  "perf_counter_timer_inv" => "5",
151  "perf_average_bulk" => "5",
152  "perf_100nsec_timer" => "5",
153  "perf_100nsec_timer_inv" => "5",
154  "perf_counter_multi_timer" => "5",
155  "perf_counter_multi_timer_inv" => "5",
156  "perf_100nsec_multi_timer" => "5",
157  "perf_100nsec_multi_timer_inv" => "5",
158  "perf_elapsed_time" => "5");
159 
160  // Special extensions
161 
162  // Each category can specify a PHP function that returns an altered
163  // version of the keyword.
164 
165 
166 
167  $this->linkscripts = array(
168  "1" => "donothing",
169  "2" => "donothing",
170  "3" => "donothing",
171  "4" => "donothing",
172  "5" => "donothing");
173  }
174 
175 
176  public function donothing($keywordin)
177  {
178  return $keywordin;
179  }
180  }
$BEAUT_PATH
Create styles array
The data for the language used.
Definition: HFile.php:21
donothing($keywordin)