Re: [code] see lexer defined background colors in caret line

From: Robert Gieseke <>
Date: Tue, 10 Nov 2015 20:53:10 +0100

Hi Martin

Am 09/11/15 um 14:50 schrieb Mitchell:
>> I use a lexer, that defines background colours as part of the style for
>> certain tokens. I would like to see these background colours also while
>> writing text. However the background colour of caret line seems to have
>> precedence.
>> One of my attempts was to remove the background colour of the caret line by
>> setting buffer.caret_line_visible to false which didn't show any effect,
>> but anyway I would prefer to find a solution that keeps the background
>> colour of the caret line and shows the background colour of the defined
>> styles.
> Unfortunately, Scintilla (Textadept's editing component) does not support
> this. The caret line always takes precedence. To remove it, ensure you're
> setting `buffer.caret_line_visible = false` in your
> `~/.textadept/properties.lua`, which will apply the setting to all
> buffers. If you set it in `~/.textadept/init.lua`, then your setting would
> apply only to the initial buffer and not subsequent ones.

You could try experimenting with the caret line's alpha value, e.g. in
your properties.lua:
buffer.caret_line_back_alpha = 55

You might want to experiment with the alpha value to optimize for your


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Tue 10 Nov 2015 - 14:53:10 EST

This archive was generated by hypermail 2.2.0 : Wed 11 Nov 2015 - 06:50:16 EST