2 $BEAUT_PATH = realpath(
".") .
"/Services/COPage/syntax_highlight/php";
6 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
24 $this->colours =
array(
"blue",
"purple",
"gray",
"brown",
"blue",
"purple",
"gray",
"brown");
25 $this->quotecolour =
"blue";
26 $this->blockcommentcolour =
"green";
27 $this->linecommentcolour =
"green";
31 $this->indent =
array(
"#IF",
"#LOOP",
"#FOR");
32 $this->unindent =
array(
"#ENDIF",
"#ENDLOOP",
"#ENDFOR");
36 $this->stringchars =
array(
"'");
37 $this->delimiters =
array(
"~",
"{",
"}",
"@",
"^",
"&",
"*",
"(",
")",
"-",
"+",
"=",
"|",
"\\",
"/",
"[",
"]",
";",
"\"",
"'",
">",
".",
",");
42 $this->linecommenton =
array(
"#!");
43 $this->blockcommenton =
array(
"");
44 $this->blockcommentoff =
array(
"");
48 $this->keywords =
array(
50 "#APPLICATION" =>
"1",
61 "#ENDRESTRICT" =>
"1",
83 "#ENDGLOBALDATA" =>
"2",
84 "#ENDLOCALDATA" =>
"2",
113 "#ENDPREPARE" =>
"3",
139 "#ENDSECTION" =>
"4",
176 "%ActiveTemplate" =>
"6",
177 "%ActiveTemplateInstance" =>
"6",
178 "%ActiveTemplateOwnerInstance" =>
"6",
179 "%ActiveTemplateParentInstance" =>
"6",
180 "%ActiveTemplatePrimaryInstance" =>
"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",
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",
224 "%DriverBinMemo" =>
"6",
225 "%DriverCreate" =>
"6",
226 "%DriverDescription" =>
"6",
228 "%DriverEncrypt" =>
"6",
230 "%DriverMaxKeys" =>
"6",
231 "%DriverMemo" =>
"6",
232 "%DriverOpcode" =>
"6",
233 "%DriverOwner" =>
"6",
234 "%DriverReclaim" =>
"6",
235 "%DriverRequired" =>
"6",
237 "%DriverType" =>
"6",
238 "%DriverUniqueKey" =>
"6",
239 "%EditFilename" =>
"6",
240 "%EditProcedure" =>
"6",
241 "%EmbedDescription" =>
"6",
243 "%EmbedParameters" =>
"6",
247 "%FieldChoices" =>
"6",
248 "%FieldDescription" =>
"6",
249 "%FieldDimension1" =>
"6",
250 "%FieldDimension2" =>
"6",
251 "%FieldDimension3" =>
"6",
252 "%FieldDimension4" =>
"6",
253 "%FieldDisplayPicture" =>
"6",
255 "%FieldFormatWidth" =>
"6",
256 "%FieldHeader" =>
"6",
257 "%FieldHelpID" =>
"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",
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",
283 "%FieldUserOptions" =>
"6",
284 "%FieldValidation" =>
"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",
297 "%FileKeyField" =>
"6",
298 "%FileKeyFieldLink" =>
"6",
299 "%FileLongDesc" =>
"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",
314 "%FileUserOptions" =>
"6",
315 "%FirstProcedure" =>
"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",
330 "%KeyDescription" =>
"6",
331 "%KeyDuplicate" =>
"6",
332 "%KeyExcludeNulls" =>
"6",
334 "%KeyFieldSequence" =>
"6",
339 "%KeyLongDesc" =>
"6",
342 "%KeyPrimary" =>
"6",
343 "%KeyQuickOptions" =>
"6",
344 "%KeyStatement" =>
"6",
346 "%KeyUserOptions" =>
"6",
348 "%LocalDataStatement" =>
"6",
349 "%MenuBarStatement" =>
"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",
363 "%OtherFiles" =>
"6",
365 "%PrimaryInstance" =>
"6",
366 "%PrimaryKey" =>
"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",
384 "%ProgramDateChanged" =>
"6",
385 "%ProgramDateCreated" =>
"6",
386 "%ProgramExtension" =>
"6",
387 "%ProgramTimeChanged" =>
"6",
388 "%ProgramTimeCreated" =>
"6",
390 "%QuickProcedure" =>
"6",
391 "%RegistryChanged" =>
"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",
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",
415 "%SecondaryTo" =>
"6",
416 "%SecondaryType" =>
"6",
418 "%ToolbarStatement" =>
"6",
421 "%ViewFileField" =>
"6",
422 "%ViewFileFields" =>
"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",
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",
473 "%IncludePrototype" =>
"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",
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",
513 "%BuildHeader" =>
"7",
514 "%BuildInclude" =>
"7",
515 "%ExportFile" =>
"7",
516 "%ValueConstruct" =>
"7",
517 "%HoldConstruct" =>
"7",
518 "%RegenerateGlobalModule" =>
"7",
520 "%UpdateRelationPrimary" =>
"7",
521 "%UpdateRelationSecondary" =>
"7",
522 "%UpdateAttachedFile" =>
"7",
523 "%DeleteRelationPrimary" =>
"7",
524 "%DeleteRelationSecondary" =>
"7",
525 "%DeleteAttachedFile" =>
"7",
528 "%GlobalRegenerate" =>
"7",
529 "%FilesPerBCModule" =>
"7",
530 "%RelatesPerRoutine" =>
"7",
562 $this->linkscripts =
array(
Create styles array
The data for the language used.