ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_nfl.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_nfl extends HFile
8 {
9 public function HFile_nfl()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // Notes Formula Language
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");
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("REM");
43 $this->blockcommenton = array("");
44 $this->blockcommentoff = array("");
45
46 // Keywords (keyword mapping to colour number)
47
48 $this->keywords = array(
49 "DEFAULT" => "1",
50 "ENVIRONMENT" => "1",
51 "FIELD" => "1",
52 "SELECT" => "1",
53 "@Abs" => "1",
54 "@Abstract" => "1",
55 "@Accessed" => "1",
56 "@Acos" => "1",
57 "@Adjust" => "1",
58 "@All" => "1",
59 "@AllChildren" => "1",
60 "@AllDescendants" => "1",
61 "@Ascii" => "1",
62 "@Asin" => "1",
63 "@Atan" => "1",
64 "@Atan2" => "1",
65 "@AttachmentLengths" => "1",
66 "@AttachmentNames" => "1",
67 "@Attachments" => "1",
68 "@Author" => "1",
69 "@Begins" => "1",
70 "@Certificate" => "1",
71 "@Char" => "1",
72 "@CheckAlarms" => "1",
73 "@ClientType" => "1",
74 "@Command" => "1",
75 "@Contains" => "1",
76 "@Cos" => "1",
77 "@Created" => "1",
78 "@Date" => "1",
79 "@Day" => "1",
80 "@DbColumn" => "1",
81 "@DbCommand" => "1",
82 "@DbExists" => "1",
83 "@DbLookup" => "1",
84 "@DbManager" => "1",
85 "@DbName" => "1",
86 "@DbTitle" => "1",
87 "@DDEExecute" => "1",
88 "@DDEInitiate" => "1",
89 "@DDEPoke" => "1",
90 "@DDETerminate" => "1",
91 "@DeleteDocument" => "1",
92 "@DeleteField" => "1",
93 "@DialogBox" => "1",
94 "@Do" => "1",
95 "@DocChildren" => "1",
96 "@DocDescendants" => "1",
97 "@DocFields" => "1",
98 "@DocLength" => "1",
99 "@DocLevel" => "1",
100 "@DocMark" => "1",
101 "@DocNumber" => "1",
102 "@DocParentNumber" => "1",
103 "@DocSiblings" => "1",
104 "@DocumentUniqueID" => "1",
105 "@Domain" => "1",
106 "@EditECL" => "1",
107 "@EditUserECL" => "1",
108 "@Elements" => "1",
109 "@EnableAlarms" => "1",
110 "@Ends" => "1",
111 "@Environment" => "1",
112 "@Error" => "1",
113 "@Exp" => "1",
114 "@Explode" => "1",
115 "@Failure" => "1",
116 "@False" => "1",
117 "@GetDocField" => "1",
118 "@GetPortsList" => "1",
119 "@GetProfileField" => "1",
120 "@Hour" => "1",
121 "@If" => "1",
122 "@Implode" => "1",
123 "@InheritedDocumentUniqueID" => "1",
124 "@Integer" => "1",
125 "@IsAgentEnabled" => "1",
126 "@IsAvailable" => "1",
127 "@IsCategory" => "1",
128 "@IsDocBeingEdited" => "1",
129 "@IsDocBeingLoaded" => "1",
130 "@IsDocBeingMailed" => "1",
131 "@IsDocBeingRecalculated" => "1",
132 "@IsDocBeingSaved" => "1",
133 "@IsDocTruncated" => "1",
134 "@IsError" => "1",
135 "@IsExpandable" => "1",
136 "@IsMember" => "1",
137 "@IsModalHelp" => "1",
138 "@IsNewDoc" => "1",
139 "@IsNotMember" => "1",
140 "@IsNumber" => "1",
141 "@IsResponseDoc" => "1",
142 "@IsText" => "1",
143 "@IsTime" => "1",
144 "@IsUnavailable" => "1",
145 "@IsValid" => "1",
146 "@Keywords" => "1",
147 "@Left" => "1",
148 "@LeftBack" => "1",
149 "@Length" => "1",
150 "@Like" => "1",
151 "@Ln" => "1",
152 "@Log" => "1",
153 "@LowerCase" => "1",
154 "@MailDbName" => "1",
155 "@MailEncryptSavedPreference" => "1",
156 "@MailEncryptSentPreference" => "1",
157 "@MailSavePreference" => "1",
158 "@MailSend" => "1",
159 "@MailSignPreference" => "1",
160 "@Matches" => "1",
161 "@Max" => "1",
162 "@Member" => "1",
163 "@Middle" => "1",
164 "@MiddleBack" => "1",
165 "@Min" => "1",
166 "@Minute" => "1",
167 "@Modified" => "1",
168 "@Modulo" => "1",
169 "@Month" => "1",
170 "@Name" => "1",
171 "@NewLine" => "1",
172 "@No" => "1",
173 "@NoteID" => "1",
174 "@Now" => "1",
175 "@OptimizeMailAddress" => "1",
176 "@Password" => "1",
177 "@Pi" => "1",
178 "@PickList" => "1",
179 "@Platform" => "1",
180 "@PostedCommand" => "1",
181 "@Power" => "1",
182 "@Prompt" => "1",
183 "@ProperCase" => "1",
184 "@Random" => "1",
185 "@RefreshECL" => "1",
186 "@Repeat" => "1",
187 "@Replace" => "1",
188 "@ReplaceSubstring" => "1",
189 "@Responses" => "1",
190 "@Return" => "1",
191 "@Right" => "1",
192 "@RightBack" => "1",
193 "@Round" => "1",
194 "@Second" => "1",
195 "@Select" => "1",
196 "@Set" => "1",
197 "@SetDocField" => "1",
198 "@SetEnvironment" => "1",
199 "@SetField" => "1",
200 "@SetProfileField" => "1",
201 "@Sign" => "1",
202 "@Sin" => "1",
203 "@Soundex" => "1",
204 "@Sqrt" => "1",
205 "@Subset" => "1",
206 "@Success" => "1",
207 "@Sum" => "1",
208 "@Tan" => "1",
209 "@Text" => "1",
210 "@TextToNumber" => "1",
211 "@TextToTime" => "1",
212 "@Time" => "1",
213 "@Today" => "1",
214 "@Tomorrow" => "1",
215 "@Trim" => "1",
216 "@True" => "1",
217 "@Unavailable" => "1",
218 "@Unique" => "1",
219 "@UpperCase" => "1",
220 "@URLGetHeader" => "1",
221 "@URLHistory" => "1",
222 "@URLOpen" => "1",
223 "@UserAccess" => "1",
224 "@UserName" => "1",
225 "@UserPrivileges" => "1",
226 "@UserRoles" => "1",
227 "@V2If" => "1",
228 "@V3UserName" => "1",
229 "@Version" => "1",
230 "@ViewTitle" => "1",
231 "@Weekday" => "1",
232 "@Word" => "1",
233 "@Year" => "1",
234 "@Yes" => "1",
235 "@Yesterday" => "1",
236 "@Zone" => "1",
237 ":" => "2",
238 "=" => "2",
239 "&" => "2");
240
241 // Special extensions
242
243 // Each category can specify a PHP function that returns an altered
244 // version of the keyword.
245
246
247
248 $this->linkscripts = array(
249 "1" => "donothing",
250 "2" => "donothing");
251 }
252
253
254 public function donothing($keywordin)
255 {
256 return $keywordin;
257 }
258 }
$BEAUT_PATH
Definition: HFile_nfl.php:2
An exception for terminatinating execution or to throw for unit testing.
donothing($keywordin)
Definition: HFile_nfl.php:254
HFile_nfl()
Definition: HFile_nfl.php:9