ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_clariontemplate.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");
8  {
9  public function HFile_clariontemplate()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Clarion-Template
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", "purple", "gray", "brown");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("#IF", "#LOOP", "#FOR");
32  $this->unindent = array("#ENDIF", "#ENDLOOP", "#ENDFOR");
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  "#ACCEPT" => "1",
50  "#APPLICATION" => "1",
51  "#AT" => "1",
52  "#ATEND" => "1",
53  "#ATSTART" => "1",
54  "#CODE" => "1",
55  "#CONTROL" => "1",
56  "#CONTEXT" => "1",
57  "#EMBED" => "1",
58  "#EMPTYEMBED" => "1",
59  "#ENDAT" => "1",
60  "#ENDCONTEXT" => "1",
61  "#ENDRESTRICT" => "1",
62  "#EXTENSION" => "1",
63  "#GROUP" => "1",
64  "#MODULE" => "1",
65  "#POSTEMBED" => "1",
66  "#PREEMBED" => "1",
67  "#PROCEDURE" => "1",
68  "#PROGRAM" => "1",
69  "#PRIORITY" => "1",
70  "#RESTRICT" => "1",
71  "#REJECT" => "1",
72  "#TEMPLATE" => "1",
73  "#UTILITY" => "1",
74  "#WHERE" => "1",
75  "#ADD" => "2",
76  "#ALIAS" => "2",
77  "#CLEAR" => "2",
78  "#DECLARE" => "2",
79  "#DELETE" => "2",
80  "#DELETEALL" => "2",
81  "#DEFAULT" => "2",
82  "#ENDDEFAULT" => "2",
83  "#ENDGLOBALDATA" => "2",
84  "#ENDLOCALDATA" => "2",
85  "#ENDREPORTS" => "2",
86  "#ENDWINDOWS" => "2",
87  "#FIND" => "2",
88  "#FIX" => "2",
89  "#FREE" => "2",
90  "#GLOBALDATA" => "2",
91  "#LOCALDATA" => "2",
92  "#LINK" => "2",
93  "#ORIG" => "2",
94  "#POP" => "2",
95  "#PURGE" => "2",
96  "#REPORTS" => "2",
97  "#REQ" => "2",
98  "#SELECT" => "2",
99  "#SET" => "2",
100  "#UNFIX" => "2",
101  "#WINDOWS" => "2",
102  "SAVE" => "2",
103  "UNIQUE" => "2",
104  "#BOXED" => "3",
105  "#BUTTON" => "3",
106  "#DISPLAY" => "3",
107  "#ENABLE" => "3",
108  "#ENDBOXED" => "3",
109  "#ENDBUTTON" => "3",
110  "#ENDCASE" => "4",
111  "#ENDENABLE" => "3",
112  "#ENDFIELD" => "3",
113  "#ENDPREPARE" => "3",
114  "#ENDSHEET" => "3",
115  "#ENDTAB" => "3",
116  "#ENDWITH" => "3",
117  "#FIELD" => "3",
118  "#IMAGE" => "3",
119  "#PREPARE" => "3",
120  "#PROMPT" => "3",
121  "#SHEET" => "3",
122  "#TAB" => "3",
123  "#VALIDATE" => "3",
124  "#WITH" => "3",
125  "#?" => "4",
126  "#ABORT" => "4",
127  "#APPEND" => "4",
128  "#BREAK" => "4",
129  "#CALL" => "4",
130  "#CASE" => "4",
131  "#CLOSE" => "4",
132  "#CYCLE" => "4",
133  "#CREATE" => "4",
134  "#ELSE" => "4",
135  "#ELSIF" => "4",
136  "#ENDFOR" => "4",
137  "#ENDIF" => "4",
138  "#ENDLOOP" => "4",
139  "#ENDSECTION" => "4",
140  "#FOR" => "4",
141  "#GENERATE" => "4",
142  "#IF" => "4",
143  "#INVOKE" => "4",
144  "#INDENT" => "4",
145  "#INSERT" => "4",
146  "#LOOP" => "4",
147  "#OF" => "4",
148  "#OROF" => "4",
149  "#OPEN" => "4",
150  "#PRINT" => "4",
151  "#READ" => "4",
152  "#REDIRECT" => "4",
153  "#RELEASE" => "4",
154  "#REMOVE" => "4",
155  "#REPLACE" => "4",
156  "#RESUME" => "4",
157  "#RETURN" => "4",
158  "#RUN" => "4",
159  "#RUNDLL" => "4",
160  "#SERVICE" => "4",
161  "#SUSPEND" => "4",
162  "#SECTION" => "4",
163  "#<" => "5",
164  "#ASSERT" => "5",
165  "#CLASS" => "5",
166  "#COMMENT" => "5",
167  "#DEBUG" => "5",
168  "#ERROR" => "5",
169  "#EXPORT" => "5",
170  "#HELP" => "5",
171  "#IMPORT" => "5",
172  "#INCLUDE" => "5",
173  "#MESSAGE" => "5",
174  "#PROJECT" => "5",
175  "#PROTOTYPE" => "5",
176  "%ActiveTemplate" => "6",
177  "%ActiveTemplateInstance" => "6",
178  "%ActiveTemplateOwnerInstance" => "6",
179  "%ActiveTemplateParentInstance" => "6",
180  "%ActiveTemplatePrimaryInstance" => "6",
181  "%AliasFile" => "6",
182  "%Application" => "6",
183  "%ApplicationDebug" => "6",
184  "%ApplicationLocalLibrary" => "6",
185  "%ApplicationTemplate" => "6",
186  "%ApplicationTemplateInstance" => "6",
187  "%ApplicationTemplateParentInstance" => "6",
188  "%BytesOutput" => "6",
189  "%ConditionalGenerate" => "6",
190  "%Control" => "6",
191  "%ControlAlert" => "6",
192  "%ControlDefaultHeight" => "6",
193  "%ControlDefaultWidth" => "6",
194  "%ControlEvent" => "6",
195  "%ControlField" => "6",
196  "%ControlFieldFormat" => "6",
197  "%ControlFieldHasColor" => "6",
198  "%ControlFieldHasIcon" => "6",
199  "%ControlFieldHasLocator" => "6",
200  "%ControlFieldHasTree" => "6",
201  "%ControlFieldHeading" => "6",
202  "%ControlFieldPicture" => "6",
203  "%ControlFrom" => "6",
204  "%ControlIndent" => "6",
205  "%ControlInstance" => "6",
206  "%ControlMenu" => "6",
207  "%ControlMenuBar" => "6",
208  "%ControlOriginal" => "6",
209  "%ControlParameter" => "6",
210  "%ControlParent" => "6",
211  "%ControlParentTab" => "6",
212  "%ControlParentType" => "6",
213  "%ControlStatement" => "6",
214  "%ControlTemplate" => "6",
215  "%ControlTool" => "6",
216  "%ControlToolBar" => "6",
217  "%ControlType" => "6",
218  "%ControlUnsplitStatement" => "6",
219  "%ControlUse" => "6",
220  "%CreateLocalMap" => "6",
221  "%DictionaryChanged" => "6",
222  "%DictionaryFile" => "6",
223  "%Driver" => "6",
224  "%DriverBinMemo" => "6",
225  "%DriverCreate" => "6",
226  "%DriverDescription" => "6",
227  "%DriverDLL" => "6",
228  "%DriverEncrypt" => "6",
229  "%DriverLIB" => "6",
230  "%DriverMaxKeys" => "6",
231  "%DriverMemo" => "6",
232  "%DriverOpcode" => "6",
233  "%DriverOwner" => "6",
234  "%DriverReclaim" => "6",
235  "%DriverRequired" => "6",
236  "%DriverSQL" => "6",
237  "%DriverType" => "6",
238  "%DriverUniqueKey" => "6",
239  "%EditFilename" => "6",
240  "%EditProcedure" => "6",
241  "%EmbedDescription" => "6",
242  "%EmbedID" => "6",
243  "%EmbedParameters" => "6",
244  "%EOF" => "6",
245  "%False" => "6",
246  "%Field" => "6",
247  "%FieldChoices" => "6",
248  "%FieldDescription" => "6",
249  "%FieldDimension1" => "6",
250  "%FieldDimension2" => "6",
251  "%FieldDimension3" => "6",
252  "%FieldDimension4" => "6",
253  "%FieldDisplayPicture" => "6",
254  "%FieldFile" => "6",
255  "%FieldFormatWidth" => "6",
256  "%FieldHeader" => "6",
257  "%FieldHelpID" => "6",
258  "%FieldID" => "6",
259  "%FieldIdent" => "6",
260  "%FieldInitial" => "6",
261  "%FieldJustIndent" => "6",
262  "%FieldJustType" => "6",
263  "%FieldLongDesc" => "6",
264  "%FieldLookup" => "6",
265  "%FieldMemoImage" => "6",
266  "%FieldMemoSize" => "6",
267  "%FieldName" => "6",
268  "%FieldPicture" => "6",
269  "%FieldPlaces" => "6",
270  "%FieldQuickOptions" => "6",
271  "%FieldRangeHigh" => "6",
272  "%FieldRangeLow" => "6",
273  "%FieldRecordPicture" => "6",
274  "%FieldReportControl" => "6",
275  "%FieldReportControlHeight" => "6",
276  "%FieldReportControlWidth" => "6",
277  "%FieldScreenControl" => "6",
278  "%FieldScreenControlHeight" => "6",
279  "%FieldScreenControlWidth" => "6",
280  "%FieldStatement" => "6",
281  "%FieldStruct" => "6",
282  "%FieldType" => "6",
283  "%FieldUserOptions" => "6",
284  "%FieldValidation" => "6",
285  "%File" => "6",
286  "%File32BitOnly" => "6",
287  "%FileBindable" => "6",
288  "%FileCreate" => "6",
289  "%FileDescription" => "6",
290  "%FileDriver" => "6",
291  "%FileDriverParameter" => "6",
292  "%FileEncrypt" => "6",
293  "%FileExternal" => "6",
294  "%FileExternalModule" => "6",
295  "%FileIdent" => "6",
296  "%FileKey" => "6",
297  "%FileKeyField" => "6",
298  "%FileKeyFieldLink" => "6",
299  "%FileLongDesc" => "6",
300  "%FileName" => "6",
301  "%FileOwner" => "6",
302  "%FilePrefix" => "6",
303  "%FilePrimaryKey" => "6",
304  "%FileQuickOptions" => "6",
305  "%FileReclaim" => "6",
306  "%FileRelationType" => "6",
307  "%FileStatement" => "6",
308  "%FileStruct" => "6",
309  "%FileStructEnd" => "6",
310  "%FileStructRec" => "6",
311  "%FileStructRecEnd" => "6",
312  "%FileThreaded" => "6",
313  "%FileType" => "6",
314  "%FileUserOptions" => "6",
315  "%FirstProcedure" => "6",
316  "%Formula" => "6",
317  "%FormulaClass" => "6",
318  "%FormulaDescription" => "6",
319  "%FormulaExpression" => "6",
320  "%FormulaExpressionCase" => "6",
321  "%FormulaExpressionFalse" => "6",
322  "%FormulaExpressionTrue" => "6",
323  "%FormulaExpressionType" => "6",
324  "%FormulaInstance" => "6",
325  "%GlobalData" => "6",
326  "%GlobalDataStatement" => "6",
327  "%HelpFile" => "6",
328  "%Key" => "6",
329  "%KeyAuto" => "6",
330  "%KeyDescription" => "6",
331  "%KeyDuplicate" => "6",
332  "%KeyExcludeNulls" => "6",
333  "%KeyField" => "6",
334  "%KeyFieldSequence" => "6",
335  "%KeyFile" => "6",
336  "%KeyID" => "6",
337  "%KeyIdent" => "6",
338  "%KeyIndex" => "6",
339  "%KeyLongDesc" => "6",
340  "%KeyName" => "6",
341  "%KeyNoCase" => "6",
342  "%KeyPrimary" => "6",
343  "%KeyQuickOptions" => "6",
344  "%KeyStatement" => "6",
345  "%KeyStruct" => "6",
346  "%KeyUserOptions" => "6",
347  "%LocalData" => "6",
348  "%LocalDataStatement" => "6",
349  "%MenuBarStatement" => "6",
350  "%Module" => "6",
351  "%ModuleBase" => "6",
352  "%ModuleChanged" => "6",
353  "%ModuleData" => "6",
354  "%ModuleDataStatement" => "6",
355  "%ModuleExtension" => "6",
356  "%ModuleExternal" => "6",
357  "%ModuleInclude" => "6",
358  "%ModuleLanguage" => "6",
359  "%ModuleProcedure" => "6",
360  "%ModuleReadOnly" => "6",
361  "%ModuleTemplate" => "6",
362  "%Null" => "6",
363  "%OtherFiles" => "6",
364  "%Primary" => "6",
365  "%PrimaryInstance" => "6",
366  "%PrimaryKey" => "6",
367  "%Procedure" => "6",
368  "%ProcedureCalled" => "6",
369  "%ProcedureDateChanged" => "6",
370  "%ProcedureDateCreated" => "6",
371  "%ProcedureDescription" => "6",
372  "%ProcedureExported" => "6",
373  "%ProcedureIsGlobal" => "6",
374  "%ProcedureLanguage" => "6",
375  "%ProcedureLongDescription" => "6",
376  "%ProcedureReadOnly" => "6",
377  "%ProcedureReturnType" => "6",
378  "%ProcedureTemplate" => "6",
379  "%ProcedureTimeChanged" => "6",
380  "%ProcedureTimeCreated" => "6",
381  "%ProcedureToDo" => "6",
382  "%ProcedureType" => "6",
383  "%Program" => "6",
384  "%ProgramDateChanged" => "6",
385  "%ProgramDateCreated" => "6",
386  "%ProgramExtension" => "6",
387  "%ProgramTimeChanged" => "6",
388  "%ProgramTimeCreated" => "6",
389  "%Prototype" => "6",
390  "%QuickProcedure" => "6",
391  "%RegistryChanged" => "6",
392  "%Relation" => "6",
393  "%RelationAlias" => "6",
394  "%RelationConstraintDelete" => "6",
395  "%RelationConstraintUpdate" => "6",
396  "%RelationKey" => "6",
397  "%RelationKeyField" => "6",
398  "%RelationKeyFieldLink" => "6",
399  "%RelationPrefix" => "6",
400  "%RelationQuickOptions" => "6",
401  "%RelationUserOptions" => "6",
402  "%Report" => "6",
403  "%ReportControl" => "6",
404  "%ReportControlField" => "6",
405  "%ReportControlIndent" => "6",
406  "%ReportControlInstance" => "6",
407  "%ReportControlLabel" => "6",
408  "%ReportControlOriginal" => "6",
409  "%ReportControlStatement" => "6",
410  "%ReportControlTemplate" => "6",
411  "%ReportControlType" => "6",
412  "%ReportControlUse" => "6",
413  "%ReportStatement" => "6",
414  "%Secondary" => "6",
415  "%SecondaryTo" => "6",
416  "%SecondaryType" => "6",
417  "%Target32" => "6",
418  "%ToolbarStatement" => "6",
419  "%True" => "6",
420  "%ViewFile" => "6",
421  "%ViewFileField" => "6",
422  "%ViewFileFields" => "6",
423  "%ViewFiles" => "6",
424  "%ViewFileStruct" => "6",
425  "%ViewFileStructEnd" => "6",
426  "%ViewFilter" => "6",
427  "%ViewJoinedTo" => "6",
428  "%ViewPrimary" => "6",
429  "%ViewPrimaryField" => "6",
430  "%ViewPrimaryFields" => "6",
431  "%ViewStatement" => "6",
432  "%ViewStruct" => "6",
433  "%ViewStructEnd" => "6",
434  "%Window" => "6",
435  "%WindowEvent" => "6",
436  "%WindowStatement" => "6",
437  "%pClassName" => "7",
438  "%pClassIncFile" => "7",
439  "%pClassMethod" => "7",
440  "%pClassMethodPrototype" => "7",
441  "%pClassMethodPrivate" => "7",
442  "%pClassMethodVirtual" => "7",
443  "%pClassMethodProtected" => "7",
444  "%pClassMethodProcAttribute" => "7",
445  "%pClassMethodInherited" => "7",
446  "%pClassMethodReturnType" => "7",
447  "%pClassMethodParentCall" => "7",
448  "%pClassProperty" => "7",
449  "%pClassPropertyPrototype" => "7",
450  "%pClassPropertyPrivate" => "7",
451  "%pClassPropertyProtected" => "7",
452  "%pClassPropertyInherited" => "7",
453  "%ClassMethodList" => "7",
454  "%SysActiveInvisible" => "7",
455  "%SysAllowUnfilled" => "7",
456  "%SysRetainRow" => "7",
457  "%SysResetOnGainFocus" => "7",
458  "%SysAutoToolbar" => "7",
459  "%SysAutoRefresh" => "7",
460  "%PropertyList" => "7",
461  "%MethodList" => "7",
462  "%ObjectList" => "7",
463  "%ObjectListType" => "7",
464  "%CWTemplateVersion" => "7",
465  "%IsExternal" => "7",
466  "%SaveCreateLocalMap" => "7",
467  "%GlobalIncludeList" => "7",
468  "%ModuleIncludeList" => "7",
469  "%CalloutModules" => "7",
470  "%ClassDeclarations" => "7",
471  "%OOPConstruct" => "7",
472  "%ByteCount" => "7",
473  "%IncludePrototype" => "7",
474  "%UsedFile" => "7",
475  "%ProcFilesUsed" => "7",
476  "%UsedDriverDLLs" => "7",
477  "%PrintPreviewUsed" => "7",
478  "%FileExternalFlag" => "7",
479  "%FileThreadedFlag" => "7",
480  "%IniFileName" => "7",
481  "%GenerationCompleted" => "7",
482  "%GenerateModule" => "7",
483  "%VBXList" => "7",
484  "%OLENeeded" => "7",
485  "%OCXList" => "7",
486  "%LastTarget32" => "7",
487  "%LastProgramExtension" => "7",
488  "%LastApplicationDebug" => "7",
489  "%LastApplicationLocalLibrary" => "7",
490  "%CustomGlobalMapModule" => "7",
491  "%CustomGlobalMapProcedure" => "7",
492  "%CustomGlobalMapProcedurePrototype" => "7",
493  "%CustomGlobalData" => "7",
494  "%CustomGlobalDataDeclaration" => "7",
495  "%CustomGlobalDataBeforeFiles" => "7",
496  "%CustomGlobalDataComponent" => "7",
497  "%CustomGlobalDataComponentIndent" => "7",
498  "%CustomGlobalDataComponentDeclaration" => "7",
499  "%CustomModuleMapModule" => "7",
500  "%CustomModuleMapProcedure" => "7",
501  "%CustomModuleMapProcedurePrototype" => "7",
502  "%CustomModuleData" => "7",
503  "%CustomModuleDataDeclaration" => "7",
504  "%CustomModuleDataComponent" => "7",
505  "%CustomModuleDataComponentIndent" => "7",
506  "%CustomModuleDataComponentDeclaration" => "7",
507  "%CustomGlobalMapIncludes" => "7",
508  "%CustomGlobalDeclarationIncludes" => "7",
509  "%CustomFlags" => "7",
510  "%CustomFlagSetting" => "7",
511  "%AccessMode" => "7",
512  "%BuildFile" => "7",
513  "%BuildHeader" => "7",
514  "%BuildInclude" => "7",
515  "%ExportFile" => "7",
516  "%ValueConstruct" => "7",
517  "%HoldConstruct" => "7",
518  "%RegenerateGlobalModule" => "7",
519  "%ClipName" => "7",
520  "%UpdateRelationPrimary" => "7",
521  "%UpdateRelationSecondary" => "7",
522  "%UpdateAttachedFile" => "7",
523  "%DeleteRelationPrimary" => "7",
524  "%DeleteRelationSecondary" => "7",
525  "%DeleteAttachedFile" => "7",
526  "%AllFile" => "7",
527  "%BRWList" => "7",
528  "%GlobalRegenerate" => "7",
529  "%FilesPerBCModule" => "7",
530  "%RelatesPerRoutine" => "7",
531  "**" => "8",
532  "BEEP:" => "8",
533  "BUTTON:" => "8",
534  "COLOR:" => "8",
535  "CREATE:" => "8",
536  "CURSOR:" => "8",
537  "DDE:" => "8",
538  "EVENT:" => "8",
539  "ff_:" => "8",
540  "FILE:" => "8",
541  "FONT:" => "8",
542  "ICON:" => "8",
543  "LISTZONE:" => "8",
544  "PEN:" => "8",
545  "PROP:" => "8",
546  "PROPLIST:" => "8",
547  "PROPPRINT:" => "8",
548  "REJECT:" => "8",
549  "STD:" => "8",
550  "VBXEVENT:" => "8",
551  "#FIELDS" => "8",
552  "FALSE" => "8",
553  "TRUE" => "8");
554 
555  // Special extensions
556 
557  // Each category can specify a PHP function that returns an altered
558  // version of the keyword.
559 
560 
561 
562  $this->linkscripts = array(
563  "1" => "donothing",
564  "2" => "donothing",
565  "3" => "donothing",
566  "4" => "donothing",
567  "5" => "donothing",
568  "6" => "donothing",
569  "7" => "donothing",
570  "8" => "donothing");
571  }
572 
573 
574  public function donothing($keywordin)
575  {
576  return $keywordin;
577  }
578  }
Create styles array
The data for the language used.
Definition: HFile.php:21