ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_oemsetup.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_oemsetup extends HFile{
6  function HFile_oemsetup(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Oemsetup Script
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown", "blue");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("ifstr", "ifstr(i)", "ifint", "ifcontains");
28 $this->unindent = array("endif");
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  "\"ifcontains(i)\"" => "",
46  "addfiletodeletelist" => "1",
47  "closeregkey" => "1",
48  "createregkey" => "1",
49  "debug-output" => "1",
50  "debug_output" => "1",
51  "deleteregkey" => "1",
52  "deleteregtree" => "1",
53  "deleteregvalue" => "1",
54  "else-ifcontains" => "1",
55  "else-ifcontains(i)" => "1",
56  "else-ifint" => "1",
57  "else-ifstr" => "1",
58  "else-ifstr(i)" => "1",
59  "endforlistdo" => "1",
60  "endif" => "1",
61  "endwait" => "1",
62  "enumregkey" => "1",
63  "enumregvalue" => "1",
64  "flushinf" => "1",
65  "flushregkey" => "1",
66  "forlistdo" => "1",
67  "freelibrary" => "1",
68  "getdriveinpath" => "1",
69  "getregvalue" => "1",
70  "getsystemdate" => "1",
71  "goto" => "1",
72  "ifcontains" => "1",
73  "ifcontaints(i)" => "1",
74  "ifint" => "1",
75  "ifstr" => "1",
76  "ifstr(i)" => "1",
77  "libraryprocedure" => "1",
78  "loadlibrary" => "1",
79  "openregkey" => "1",
80  "querylistsize" => "1",
81  "set" => "1",
82  "set-add" => "1",
83  "set-and" => "1",
84  "set-dectohex" => "1",
85  "set-div" => "1",
86  "set-hextodec" => "1",
87  "set-mul" => "1",
88  "set-or" => "1",
89  "set-sub" => "1",
90  "set-subst" => "1",
91  "setregvalue" => "1",
92  "sleep" => "1",
93  "split-string" => "1",
94  "startwait" => "1",
95  "addsectionfilestocopylist" => "2",
96  "addsectionkeyfiletocopylist" => "2",
97  "addnthsectionfiletocopylist" => "2",
98  "copyfilesincopylist" => "2",
99  "clearcopylist" => "2",
100  "createdir" => "2",
101  "detect" => "2",
102  "exit" => "2",
103  "install" => "2",
104  "read-syms" => "2",
105  "removedir" => "2",
106  "return" => "2",
107  "shell" => "2",
108  "[]" => "3",
109  "$)" => "3",
110  "+" => "4",
111  "=" => "4",
112  "//" => "4",
113  "/" => "4",
114  "%" => "4",
115  "&" => "4",
116  ">" => "4",
117  "<" => "4",
118  "^" => "4",
119  "!" => "4",
120  "|" => "4",
121  "NO_ERROR" => "5",
122  "STATUS_SUCCESSFUL" => "5",
123  "STATUS_FAILED" => "5",
124  "STATUS_USERCANCEL" => "5",
125  "STATUS_REBIND" => "5",
126  "STATUS_REBOOT" => "5",
127  "STATUS_NO_EFFECT" => "5");
128 
129 // Special extensions
130 
131 // Each category can specify a PHP function that returns an altered
132 // version of the keyword.
133 
134 
135 
136 $this->linkscripts = array(
137  "" => "donothing",
138  "1" => "donothing",
139  "2" => "donothing",
140  "3" => "donothing",
141  "4" => "donothing",
142  "5" => "donothing");
143 }
144 
145 
146 function donothing($keywordin)
147 {
148  return $keywordin;
149 }
150 
151 }?>