|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!
SourceText.CustomSyntax := TWPFieldBandSyntax.Create(nil);
SourceText.CustomSyntax := nil
Please note, how the original text attributes are restored - here the bold characters in the third line.