Brad Campbell wrote:
> Is there any way of setting the default background colour of a line from a 
> SynHighlighter?
>
> I need to change the background colour based on the currently assigned range. 
> I have been doing it 
> with a hack to synedit that leaves the background colour the same as the 
> bgcolour of the last token 
> attribute on each line, but it's nasty and I'd rather find a correct way to 
> do it.
>   
You could have a whole range of tokens(id), for which the background 
color was what you wanted, then you would return the token(id) from the 
appropriate range.

Another workaround would be to write a special SynMarkup-class (like 
match-brackets, current selection, special line), to go with the 
highlighter.

Martin
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to