Lazarus

Programming => LCL => Topic started by: sergioantonio2013 on September 23, 2019, 03:38:00 pm

Title: TSynEdit & TSynPasSyn Highlighter in color
Post by: sergioantonio2013 on September 23, 2019, 03:38:00 pm
I have added a TSynEdit and used a TSynPasSyn highlighter,
when I load a pas file, it highlights it in black and white,
how can I get it to highlight it in color, like comments in blue, etc.

Thanks.
Title: Re: TSynEdit & TSynPasSyn Highlighter in color
Post by: Martin_fr on September 23, 2019, 06:58:27 pm
1) Have you set the SynEdit.Highlighter property to the SynPasSyn?

2) Have you checked the color settings in SynPasSyn (check all properties with "Attribute" in their name)
Title: Re: TSynEdit & TSynPasSyn Highlighter in color
Post by: sergioantonio2013 on September 23, 2019, 07:21:00 pm
Thanks Martin_fr,

yeah when I click on the field with the attri in the name, it gives me the option to choose the color I want for the various tokens, and comment fields.

Thanks.
TinyPortal © 2005-2018