00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_clariontemplate extends HFile{
00006 function HFile_clariontemplate(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "1";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple", "gray", "brown");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array("#IF", "#LOOP", "#FOR");
00028 $this->unindent = array("#ENDIF", "#ENDLOOP", "#ENDFOR");
00029
00030
00031
00032 $this->stringchars = array("'");
00033 $this->delimiters = array("~", "{", "}", "@", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "[", "]", ";", "\"", "'", ">", ".", ",");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("#!");
00039 $this->blockcommenton = array("");
00040 $this->blockcommentoff = array("");
00041
00042
00043
00044 $this->keywords = array(
00045 "#ACCEPT" => "1",
00046 "#APPLICATION" => "1",
00047 "#AT" => "1",
00048 "#ATEND" => "1",
00049 "#ATSTART" => "1",
00050 "#CODE" => "1",
00051 "#CONTROL" => "1",
00052 "#CONTEXT" => "1",
00053 "#EMBED" => "1",
00054 "#EMPTYEMBED" => "1",
00055 "#ENDAT" => "1",
00056 "#ENDCONTEXT" => "1",
00057 "#ENDRESTRICT" => "1",
00058 "#EXTENSION" => "1",
00059 "#GROUP" => "1",
00060 "#MODULE" => "1",
00061 "#POSTEMBED" => "1",
00062 "#PREEMBED" => "1",
00063 "#PROCEDURE" => "1",
00064 "#PROGRAM" => "1",
00065 "#PRIORITY" => "1",
00066 "#RESTRICT" => "1",
00067 "#REJECT" => "1",
00068 "#TEMPLATE" => "1",
00069 "#UTILITY" => "1",
00070 "#WHERE" => "1",
00071 "#ADD" => "2",
00072 "#ALIAS" => "2",
00073 "#CLEAR" => "2",
00074 "#DECLARE" => "2",
00075 "#DELETE" => "2",
00076 "#DELETEALL" => "2",
00077 "#DEFAULT" => "2",
00078 "#ENDDEFAULT" => "2",
00079 "#ENDGLOBALDATA" => "2",
00080 "#ENDLOCALDATA" => "2",
00081 "#ENDREPORTS" => "2",
00082 "#ENDWINDOWS" => "2",
00083 "#FIND" => "2",
00084 "#FIX" => "2",
00085 "#FREE" => "2",
00086 "#GLOBALDATA" => "2",
00087 "#LOCALDATA" => "2",
00088 "#LINK" => "2",
00089 "#ORIG" => "2",
00090 "#POP" => "2",
00091 "#PURGE" => "2",
00092 "#REPORTS" => "2",
00093 "#REQ" => "2",
00094 "#SELECT" => "2",
00095 "#SET" => "2",
00096 "#UNFIX" => "2",
00097 "#WINDOWS" => "2",
00098 "SAVE" => "2",
00099 "UNIQUE" => "2",
00100 "#BOXED" => "3",
00101 "#BUTTON" => "3",
00102 "#DISPLAY" => "3",
00103 "#ENABLE" => "3",
00104 "#ENDBOXED" => "3",
00105 "#ENDBUTTON" => "3",
00106 "#ENDCASE" => "4",
00107 "#ENDENABLE" => "3",
00108 "#ENDFIELD" => "3",
00109 "#ENDPREPARE" => "3",
00110 "#ENDSHEET" => "3",
00111 "#ENDTAB" => "3",
00112 "#ENDWITH" => "3",
00113 "#FIELD" => "3",
00114 "#IMAGE" => "3",
00115 "#PREPARE" => "3",
00116 "#PROMPT" => "3",
00117 "#SHEET" => "3",
00118 "#TAB" => "3",
00119 "#VALIDATE" => "3",
00120 "#WITH" => "3",
00121 "#?" => "4",
00122 "#ABORT" => "4",
00123 "#APPEND" => "4",
00124 "#BREAK" => "4",
00125 "#CALL" => "4",
00126 "#CASE" => "4",
00127 "#CLOSE" => "4",
00128 "#CYCLE" => "4",
00129 "#CREATE" => "4",
00130 "#ELSE" => "4",
00131 "#ELSIF" => "4",
00132 "#ENDFOR" => "4",
00133 "#ENDIF" => "4",
00134 "#ENDLOOP" => "4",
00135 "#ENDSECTION" => "4",
00136 "#FOR" => "4",
00137 "#GENERATE" => "4",
00138 "#IF" => "4",
00139 "#INVOKE" => "4",
00140 "#INDENT" => "4",
00141 "#INSERT" => "4",
00142 "#LOOP" => "4",
00143 "#OF" => "4",
00144 "#OROF" => "4",
00145 "#OPEN" => "4",
00146 "#PRINT" => "4",
00147 "#READ" => "4",
00148 "#REDIRECT" => "4",
00149 "#RELEASE" => "4",
00150 "#REMOVE" => "4",
00151 "#REPLACE" => "4",
00152 "#RESUME" => "4",
00153 "#RETURN" => "4",
00154 "#RUN" => "4",
00155 "#RUNDLL" => "4",
00156 "#SERVICE" => "4",
00157 "#SUSPEND" => "4",
00158 "#SECTION" => "4",
00159 "#<" => "5",
00160 "#ASSERT" => "5",
00161 "#CLASS" => "5",
00162 "#COMMENT" => "5",
00163 "#DEBUG" => "5",
00164 "#ERROR" => "5",
00165 "#EXPORT" => "5",
00166 "#HELP" => "5",
00167 "#IMPORT" => "5",
00168 "#INCLUDE" => "5",
00169 "#MESSAGE" => "5",
00170 "#PROJECT" => "5",
00171 "#PROTOTYPE" => "5",
00172 "%ActiveTemplate" => "6",
00173 "%ActiveTemplateInstance" => "6",
00174 "%ActiveTemplateOwnerInstance" => "6",
00175 "%ActiveTemplateParentInstance" => "6",
00176 "%ActiveTemplatePrimaryInstance" => "6",
00177 "%AliasFile" => "6",
00178 "%Application" => "6",
00179 "%ApplicationDebug" => "6",
00180 "%ApplicationLocalLibrary" => "6",
00181 "%ApplicationTemplate" => "6",
00182 "%ApplicationTemplateInstance" => "6",
00183 "%ApplicationTemplateParentInstance" => "6",
00184 "%BytesOutput" => "6",
00185 "%ConditionalGenerate" => "6",
00186 "%Control" => "6",
00187 "%ControlAlert" => "6",
00188 "%ControlDefaultHeight" => "6",
00189 "%ControlDefaultWidth" => "6",
00190 "%ControlEvent" => "6",
00191 "%ControlField" => "6",
00192 "%ControlFieldFormat" => "6",
00193 "%ControlFieldHasColor" => "6",
00194 "%ControlFieldHasIcon" => "6",
00195 "%ControlFieldHasLocator" => "6",
00196 "%ControlFieldHasTree" => "6",
00197 "%ControlFieldHeading" => "6",
00198 "%ControlFieldPicture" => "6",
00199 "%ControlFrom" => "6",
00200 "%ControlIndent" => "6",
00201 "%ControlInstance" => "6",
00202 "%ControlMenu" => "6",
00203 "%ControlMenuBar" => "6",
00204 "%ControlOriginal" => "6",
00205 "%ControlParameter" => "6",
00206 "%ControlParent" => "6",
00207 "%ControlParentTab" => "6",
00208 "%ControlParentType" => "6",
00209 "%ControlStatement" => "6",
00210 "%ControlTemplate" => "6",
00211 "%ControlTool" => "6",
00212 "%ControlToolBar" => "6",
00213 "%ControlType" => "6",
00214 "%ControlUnsplitStatement" => "6",
00215 "%ControlUse" => "6",
00216 "%CreateLocalMap" => "6",
00217 "%DictionaryChanged" => "6",
00218 "%DictionaryFile" => "6",
00219 "%Driver" => "6",
00220 "%DriverBinMemo" => "6",
00221 "%DriverCreate" => "6",
00222 "%DriverDescription" => "6",
00223 "%DriverDLL" => "6",
00224 "%DriverEncrypt" => "6",
00225 "%DriverLIB" => "6",
00226 "%DriverMaxKeys" => "6",
00227 "%DriverMemo" => "6",
00228 "%DriverOpcode" => "6",
00229 "%DriverOwner" => "6",
00230 "%DriverReclaim" => "6",
00231 "%DriverRequired" => "6",
00232 "%DriverSQL" => "6",
00233 "%DriverType" => "6",
00234 "%DriverUniqueKey" => "6",
00235 "%EditFilename" => "6",
00236 "%EditProcedure" => "6",
00237 "%EmbedDescription" => "6",
00238 "%EmbedID" => "6",
00239 "%EmbedParameters" => "6",
00240 "%EOF" => "6",
00241 "%False" => "6",
00242 "%Field" => "6",
00243 "%FieldChoices" => "6",
00244 "%FieldDescription" => "6",
00245 "%FieldDimension1" => "6",
00246 "%FieldDimension2" => "6",
00247 "%FieldDimension3" => "6",
00248 "%FieldDimension4" => "6",
00249 "%FieldDisplayPicture" => "6",
00250 "%FieldFile" => "6",
00251 "%FieldFormatWidth" => "6",
00252 "%FieldHeader" => "6",
00253 "%FieldHelpID" => "6",
00254 "%FieldID" => "6",
00255 "%FieldIdent" => "6",
00256 "%FieldInitial" => "6",
00257 "%FieldJustIndent" => "6",
00258 "%FieldJustType" => "6",
00259 "%FieldLongDesc" => "6",
00260 "%FieldLookup" => "6",
00261 "%FieldMemoImage" => "6",
00262 "%FieldMemoSize" => "6",
00263 "%FieldName" => "6",
00264 "%FieldPicture" => "6",
00265 "%FieldPlaces" => "6",
00266 "%FieldQuickOptions" => "6",
00267 "%FieldRangeHigh" => "6",
00268 "%FieldRangeLow" => "6",
00269 "%FieldRecordPicture" => "6",
00270 "%FieldReportControl" => "6",
00271 "%FieldReportControlHeight" => "6",
00272 "%FieldReportControlWidth" => "6",
00273 "%FieldScreenControl" => "6",
00274 "%FieldScreenControlHeight" => "6",
00275 "%FieldScreenControlWidth" => "6",
00276 "%FieldStatement" => "6",
00277 "%FieldStruct" => "6",
00278 "%FieldType" => "6",
00279 "%FieldUserOptions" => "6",
00280 "%FieldValidation" => "6",
00281 "%File" => "6",
00282 "%File32BitOnly" => "6",
00283 "%FileBindable" => "6",
00284 "%FileCreate" => "6",
00285 "%FileDescription" => "6",
00286 "%FileDriver" => "6",
00287 "%FileDriverParameter" => "6",
00288 "%FileEncrypt" => "6",
00289 "%FileExternal" => "6",
00290 "%FileExternalModule" => "6",
00291 "%FileIdent" => "6",
00292 "%FileKey" => "6",
00293 "%FileKeyField" => "6",
00294 "%FileKeyFieldLink" => "6",
00295 "%FileLongDesc" => "6",
00296 "%FileName" => "6",
00297 "%FileOwner" => "6",
00298 "%FilePrefix" => "6",
00299 "%FilePrimaryKey" => "6",
00300 "%FileQuickOptions" => "6",
00301 "%FileReclaim" => "6",
00302 "%FileRelationType" => "6",
00303 "%FileStatement" => "6",
00304 "%FileStruct" => "6",
00305 "%FileStructEnd" => "6",
00306 "%FileStructRec" => "6",
00307 "%FileStructRecEnd" => "6",
00308 "%FileThreaded" => "6",
00309 "%FileType" => "6",
00310 "%FileUserOptions" => "6",
00311 "%FirstProcedure" => "6",
00312 "%Formula" => "6",
00313 "%FormulaClass" => "6",
00314 "%FormulaDescription" => "6",
00315 "%FormulaExpression" => "6",
00316 "%FormulaExpressionCase" => "6",
00317 "%FormulaExpressionFalse" => "6",
00318 "%FormulaExpressionTrue" => "6",
00319 "%FormulaExpressionType" => "6",
00320 "%FormulaInstance" => "6",
00321 "%GlobalData" => "6",
00322 "%GlobalDataStatement" => "6",
00323 "%HelpFile" => "6",
00324 "%Key" => "6",
00325 "%KeyAuto" => "6",
00326 "%KeyDescription" => "6",
00327 "%KeyDuplicate" => "6",
00328 "%KeyExcludeNulls" => "6",
00329 "%KeyField" => "6",
00330 "%KeyFieldSequence" => "6",
00331 "%KeyFile" => "6",
00332 "%KeyID" => "6",
00333 "%KeyIdent" => "6",
00334 "%KeyIndex" => "6",
00335 "%KeyLongDesc" => "6",
00336 "%KeyName" => "6",
00337 "%KeyNoCase" => "6",
00338 "%KeyPrimary" => "6",
00339 "%KeyQuickOptions" => "6",
00340 "%KeyStatement" => "6",
00341 "%KeyStruct" => "6",
00342 "%KeyUserOptions" => "6",
00343 "%LocalData" => "6",
00344 "%LocalDataStatement" => "6",
00345 "%MenuBarStatement" => "6",
00346 "%Module" => "6",
00347 "%ModuleBase" => "6",
00348 "%ModuleChanged" => "6",
00349 "%ModuleData" => "6",
00350 "%ModuleDataStatement" => "6",
00351 "%ModuleExtension" => "6",
00352 "%ModuleExternal" => "6",
00353 "%ModuleInclude" => "6",
00354 "%ModuleLanguage" => "6",
00355 "%ModuleProcedure" => "6",
00356 "%ModuleReadOnly" => "6",
00357 "%ModuleTemplate" => "6",
00358 "%Null" => "6",
00359 "%OtherFiles" => "6",
00360 "%Primary" => "6",
00361 "%PrimaryInstance" => "6",
00362 "%PrimaryKey" => "6",
00363 "%Procedure" => "6",
00364 "%ProcedureCalled" => "6",
00365 "%ProcedureDateChanged" => "6",
00366 "%ProcedureDateCreated" => "6",
00367 "%ProcedureDescription" => "6",
00368 "%ProcedureExported" => "6",
00369 "%ProcedureIsGlobal" => "6",
00370 "%ProcedureLanguage" => "6",
00371 "%ProcedureLongDescription" => "6",
00372 "%ProcedureReadOnly" => "6",
00373 "%ProcedureReturnType" => "6",
00374 "%ProcedureTemplate" => "6",
00375 "%ProcedureTimeChanged" => "6",
00376 "%ProcedureTimeCreated" => "6",
00377 "%ProcedureToDo" => "6",
00378 "%ProcedureType" => "6",
00379 "%Program" => "6",
00380 "%ProgramDateChanged" => "6",
00381 "%ProgramDateCreated" => "6",
00382 "%ProgramExtension" => "6",
00383 "%ProgramTimeChanged" => "6",
00384 "%ProgramTimeCreated" => "6",
00385 "%Prototype" => "6",
00386 "%QuickProcedure" => "6",
00387 "%RegistryChanged" => "6",
00388 "%Relation" => "6",
00389 "%RelationAlias" => "6",
00390 "%RelationConstraintDelete" => "6",
00391 "%RelationConstraintUpdate" => "6",
00392 "%RelationKey" => "6",
00393 "%RelationKeyField" => "6",
00394 "%RelationKeyFieldLink" => "6",
00395 "%RelationPrefix" => "6",
00396 "%RelationQuickOptions" => "6",
00397 "%RelationUserOptions" => "6",
00398 "%Report" => "6",
00399 "%ReportControl" => "6",
00400 "%ReportControlField" => "6",
00401 "%ReportControlIndent" => "6",
00402 "%ReportControlInstance" => "6",
00403 "%ReportControlLabel" => "6",
00404 "%ReportControlOriginal" => "6",
00405 "%ReportControlStatement" => "6",
00406 "%ReportControlTemplate" => "6",
00407 "%ReportControlType" => "6",
00408 "%ReportControlUse" => "6",
00409 "%ReportStatement" => "6",
00410 "%Secondary" => "6",
00411 "%SecondaryTo" => "6",
00412 "%SecondaryType" => "6",
00413 "%Target32" => "6",
00414 "%ToolbarStatement" => "6",
00415 "%True" => "6",
00416 "%ViewFile" => "6",
00417 "%ViewFileField" => "6",
00418 "%ViewFileFields" => "6",
00419 "%ViewFiles" => "6",
00420 "%ViewFileStruct" => "6",
00421 "%ViewFileStructEnd" => "6",
00422 "%ViewFilter" => "6",
00423 "%ViewJoinedTo" => "6",
00424 "%ViewPrimary" => "6",
00425 "%ViewPrimaryField" => "6",
00426 "%ViewPrimaryFields" => "6",
00427 "%ViewStatement" => "6",
00428 "%ViewStruct" => "6",
00429 "%ViewStructEnd" => "6",
00430 "%Window" => "6",
00431 "%WindowEvent" => "6",
00432 "%WindowStatement" => "6",
00433 "%pClassName" => "7",
00434 "%pClassIncFile" => "7",
00435 "%pClassMethod" => "7",
00436 "%pClassMethodPrototype" => "7",
00437 "%pClassMethodPrivate" => "7",
00438 "%pClassMethodVirtual" => "7",
00439 "%pClassMethodProtected" => "7",
00440 "%pClassMethodProcAttribute" => "7",
00441 "%pClassMethodInherited" => "7",
00442 "%pClassMethodReturnType" => "7",
00443 "%pClassMethodParentCall" => "7",
00444 "%pClassProperty" => "7",
00445 "%pClassPropertyPrototype" => "7",
00446 "%pClassPropertyPrivate" => "7",
00447 "%pClassPropertyProtected" => "7",
00448 "%pClassPropertyInherited" => "7",
00449 "%ClassMethodList" => "7",
00450 "%SysActiveInvisible" => "7",
00451 "%SysAllowUnfilled" => "7",
00452 "%SysRetainRow" => "7",
00453 "%SysResetOnGainFocus" => "7",
00454 "%SysAutoToolbar" => "7",
00455 "%SysAutoRefresh" => "7",
00456 "%PropertyList" => "7",
00457 "%MethodList" => "7",
00458 "%ObjectList" => "7",
00459 "%ObjectListType" => "7",
00460 "%CWTemplateVersion" => "7",
00461 "%IsExternal" => "7",
00462 "%SaveCreateLocalMap" => "7",
00463 "%GlobalIncludeList" => "7",
00464 "%ModuleIncludeList" => "7",
00465 "%CalloutModules" => "7",
00466 "%ClassDeclarations" => "7",
00467 "%OOPConstruct" => "7",
00468 "%ByteCount" => "7",
00469 "%IncludePrototype" => "7",
00470 "%UsedFile" => "7",
00471 "%ProcFilesUsed" => "7",
00472 "%UsedDriverDLLs" => "7",
00473 "%PrintPreviewUsed" => "7",
00474 "%FileExternalFlag" => "7",
00475 "%FileThreadedFlag" => "7",
00476 "%IniFileName" => "7",
00477 "%GenerationCompleted" => "7",
00478 "%GenerateModule" => "7",
00479 "%VBXList" => "7",
00480 "%OLENeeded" => "7",
00481 "%OCXList" => "7",
00482 "%LastTarget32" => "7",
00483 "%LastProgramExtension" => "7",
00484 "%LastApplicationDebug" => "7",
00485 "%LastApplicationLocalLibrary" => "7",
00486 "%CustomGlobalMapModule" => "7",
00487 "%CustomGlobalMapProcedure" => "7",
00488 "%CustomGlobalMapProcedurePrototype" => "7",
00489 "%CustomGlobalData" => "7",
00490 "%CustomGlobalDataDeclaration" => "7",
00491 "%CustomGlobalDataBeforeFiles" => "7",
00492 "%CustomGlobalDataComponent" => "7",
00493 "%CustomGlobalDataComponentIndent" => "7",
00494 "%CustomGlobalDataComponentDeclaration" => "7",
00495 "%CustomModuleMapModule" => "7",
00496 "%CustomModuleMapProcedure" => "7",
00497 "%CustomModuleMapProcedurePrototype" => "7",
00498 "%CustomModuleData" => "7",
00499 "%CustomModuleDataDeclaration" => "7",
00500 "%CustomModuleDataComponent" => "7",
00501 "%CustomModuleDataComponentIndent" => "7",
00502 "%CustomModuleDataComponentDeclaration" => "7",
00503 "%CustomGlobalMapIncludes" => "7",
00504 "%CustomGlobalDeclarationIncludes" => "7",
00505 "%CustomFlags" => "7",
00506 "%CustomFlagSetting" => "7",
00507 "%AccessMode" => "7",
00508 "%BuildFile" => "7",
00509 "%BuildHeader" => "7",
00510 "%BuildInclude" => "7",
00511 "%ExportFile" => "7",
00512 "%ValueConstruct" => "7",
00513 "%HoldConstruct" => "7",
00514 "%RegenerateGlobalModule" => "7",
00515 "%ClipName" => "7",
00516 "%UpdateRelationPrimary" => "7",
00517 "%UpdateRelationSecondary" => "7",
00518 "%UpdateAttachedFile" => "7",
00519 "%DeleteRelationPrimary" => "7",
00520 "%DeleteRelationSecondary" => "7",
00521 "%DeleteAttachedFile" => "7",
00522 "%AllFile" => "7",
00523 "%BRWList" => "7",
00524 "%GlobalRegenerate" => "7",
00525 "%FilesPerBCModule" => "7",
00526 "%RelatesPerRoutine" => "7",
00527 "**" => "8",
00528 "BEEP:" => "8",
00529 "BUTTON:" => "8",
00530 "COLOR:" => "8",
00531 "CREATE:" => "8",
00532 "CURSOR:" => "8",
00533 "DDE:" => "8",
00534 "EVENT:" => "8",
00535 "ff_:" => "8",
00536 "FILE:" => "8",
00537 "FONT:" => "8",
00538 "ICON:" => "8",
00539 "LISTZONE:" => "8",
00540 "PEN:" => "8",
00541 "PROP:" => "8",
00542 "PROPLIST:" => "8",
00543 "PROPPRINT:" => "8",
00544 "REJECT:" => "8",
00545 "STD:" => "8",
00546 "VBXEVENT:" => "8",
00547 "#FIELDS" => "8",
00548 "FALSE" => "8",
00549 "TRUE" => "8");
00550
00551
00552
00553
00554
00555
00556
00557
00558 $this->linkscripts = array(
00559 "1" => "donothing",
00560 "2" => "donothing",
00561 "3" => "donothing",
00562 "4" => "donothing",
00563 "5" => "donothing",
00564 "6" => "donothing",
00565 "7" => "donothing",
00566 "8" => "donothing");
00567 }
00568
00569
00570 function donothing($keywordin)
00571 {
00572 return $keywordin;
00573 }
00574
00575 }?>