HomeProductsWPTools5

The component TWPSynEditHighlight has been created to use the SynEdit (http://SynEdit.SourceForge.net) syntax highlighter with WPTools 5. This makes it possible to show the syntax of about 30 different languages, including pascal, Java c++ and SQL!

All you need to add the syntax highlighter units to the project. Then you can select a highlighter with

procedure TWPSyntaxHigh.HighlighterNameChange(Sender: TObject);
begin
 if WPSynEditHighlight1.SelectLanguage( HighlighterName.Text ) then
 begin
     WPSynEditHighlight1.Execute(WPRichText1.FirstPar);
     WPSynEditHighlight1.Enabled := FALSE;
     WPRichText1.ReformatAll(true, true);
     WPSynEditHighlight1.Enabled := TRUE;
 end;
 WPRichText1.SetFocus;
end;

Our free syntax highlighting application is based on this technology.