Re: [code] [textadept] Theme enhancements in hg

From: Robert Gieseke <rob.g.att.web.de>
Date: Wed, 15 Jul 2020 15:41:29 +0200

On 15.07.20 15:01, Mitchell wrote:
>
> Are you asking if there's a way to override colors and styles from the table? If so, there isn't one. I wasn't aware that was a thing.

I was thinking of changes like this:

events.connect(events.LEXER_LOADED, function(lexer)
    if lexer ~= 'java' then return end
    local default_fore = view.style_fore[view.STYLE_DEFAULT]
    view.style_fore[buffer:style_of_name('function')] = default_fore
end)

https://foicica.com/hg/textadept/diff/9d1d413a6edc/doc/manual.md#l1.53

Does that only work with LEXER_LOADED?

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 Wed 15 Jul 2020 - 09:41:29 EDT

This archive was generated by hypermail 2.2.0 : Thu 16 Jul 2020 - 06:35:37 EDT