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);



Remove highlighting:

SourceText.CustomSyntax := nil



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