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