<< Click to Display Table of Contents >> Navigation: Programming > WPReporter > Token to Template Conversion > Syntax Highlighting |
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.