Re: [code] [textadept] Whitespace background (was: output from spawn on Windows?)

From: Robert Gieseke <rob.g.att.web.de>
Date: Sat, 07 Feb 2015 11:55:59 +0100

Am 07/02/15 um 00:00 schrieb Mateusz Czaplinski:
[…]
> Also, unrelated question (should I open a new email thread for such in
> future?): I wanted to make whitespace markers visible, but somewhat faded
> in colour. I'm using the base16-tomorrow-dark theme, which doesn't seem to
> provide colors for whitespace. So, I wrote a function which builds a color
> between 'fore' color and 'back' color, and assigns it to
> `buffer.property['style.whitespace']`. Now, to what event(s) should I
> connect the function? I tried the LEXER_LOADED event (as is suggested
> somewhere in the manual for tab width settings), but it works weirdly: the
> "faded" colour shows up only after leaving a tab and coming back to it;
> initially, the whitespace colors are "full" (from the main base16-...
> theme). And, doesn't seem to "fade" on e.g. the [Message Buffer]. (How) can
> I fix those issues?

Interesting idea!
Putting something like

buffer.property['style.whitespace'] = 'back:0x80CCCC'

or (with your function)

buffer.property['style.whitespace'] =
'back:'..tostring(buffer.property['color.base0A'])

in your

.textadept/properties.lua
should work.

Cheers,
Robert

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sat 07 Feb 2015 - 05:55:59 EST

This archive was generated by hypermail 2.2.0 : Sat 07 Feb 2015 - 06:34:18 EST