ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_oemsetup.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3if (!isset($BEAUT_PATH)) {
4 return;
5}
6require_once("$BEAUT_PATH/Beautifier/HFile.php");
7 class HFile_oemsetup extends HFile
8 {
9 public function HFile_oemsetup()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Oemsetup Script
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("ifstr", "ifstr(i)", "ifint", "ifcontains");
32 $this->unindent = array("endif");
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 "\"ifcontains(i)\"" => "",
50 "addfiletodeletelist" => "1",
51 "closeregkey" => "1",
52 "createregkey" => "1",
53 "debug-output" => "1",
54 "debug_output" => "1",
55 "deleteregkey" => "1",
56 "deleteregtree" => "1",
57 "deleteregvalue" => "1",
58 "else-ifcontains" => "1",
59 "else-ifcontains(i)" => "1",
60 "else-ifint" => "1",
61 "else-ifstr" => "1",
62 "else-ifstr(i)" => "1",
63 "endforlistdo" => "1",
64 "endif" => "1",
65 "endwait" => "1",
66 "enumregkey" => "1",
67 "enumregvalue" => "1",
68 "flushinf" => "1",
69 "flushregkey" => "1",
70 "forlistdo" => "1",
71 "freelibrary" => "1",
72 "getdriveinpath" => "1",
73 "getregvalue" => "1",
74 "getsystemdate" => "1",
75 "goto" => "1",
76 "ifcontains" => "1",
77 "ifcontaints(i)" => "1",
78 "ifint" => "1",
79 "ifstr" => "1",
80 "ifstr(i)" => "1",
81 "libraryprocedure" => "1",
82 "loadlibrary" => "1",
83 "openregkey" => "1",
84 "querylistsize" => "1",
85 "set" => "1",
86 "set-add" => "1",
87 "set-and" => "1",
88 "set-dectohex" => "1",
89 "set-div" => "1",
90 "set-hextodec" => "1",
91 "set-mul" => "1",
92 "set-or" => "1",
93 "set-sub" => "1",
94 "set-subst" => "1",
95 "setregvalue" => "1",
96 "sleep" => "1",
97 "split-string" => "1",
98 "startwait" => "1",
99 "addsectionfilestocopylist" => "2",
100 "addsectionkeyfiletocopylist" => "2",
101 "addnthsectionfiletocopylist" => "2",
102 "copyfilesincopylist" => "2",
103 "clearcopylist" => "2",
104 "createdir" => "2",
105 "detect" => "2",
106 "exit" => "2",
107 "install" => "2",
108 "read-syms" => "2",
109 "removedir" => "2",
110 "return" => "2",
111 "shell" => "2",
112 "[]" => "3",
113 "$)" => "3",
114 "+" => "4",
115 "=" => "4",
116 "//" => "4",
117 "/" => "4",
118 "%" => "4",
119 "&" => "4",
120 ">" => "4",
121 "<" => "4",
122 "^" => "4",
123 "!" => "4",
124 "|" => "4",
125 "NO_ERROR" => "5",
126 "STATUS_SUCCESSFUL" => "5",
127 "STATUS_FAILED" => "5",
128 "STATUS_USERCANCEL" => "5",
129 "STATUS_REBIND" => "5",
130 "STATUS_REBOOT" => "5",
131 "STATUS_NO_EFFECT" => "5");
132
133 // Special extensions
134
135 // Each category can specify a PHP function that returns an altered
136 // version of the keyword.
137
138
139
140 $this->linkscripts = array(
141 "" => "donothing",
142 "1" => "donothing",
143 "2" => "donothing",
144 "3" => "donothing",
145 "4" => "donothing",
146 "5" => "donothing");
147 }
148
149
150 public function donothing($keywordin)
151 {
152 return $keywordin;
153 }
154 }
$BEAUT_PATH
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)