Syntax Highlighting

Top  Previous  Next

WPTools includes a syntax highlighter for XML and also for the syntax described in this chapter (see TWPFieldBandSyntax)

 

Using the syntax highlighting for report templates is easy - and - the highlighting works non destructive!

 

Show highlighting:

SourceText.CustomSyntax := TWPFieldBandSyntax.Create(nil);

clip0169

 

Remove highlighting:

SourceText.CustomSyntax := nil

clip0170

 

Please note, how the original text attributes are restored - here the bold characters in the third line.