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

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

On 15.07.20 15:41, Robert Gieseke wrote:
> 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?
>

In 10.8 i can style the line number margin like this:

if not CURSES then
  buffer:set_theme('dark', {
    ['style.linenumber'] = 'fore:%(color.red),back:%(color.yellow)',
  })
end

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:58:06 EDT

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