Re: [textadept][code] buffer.indic_style[INDIC_BRACEMATCH] don't work before run 'reset()'

From: Mitchell <m.att.foicica.com>
Date: Wed, 13 May 2015 08:43:47 -0400 (EDT)

Hi Chen Bo,

On Wed, 13 May 2015, chanble wrote:

>
> Hi,
> I change brace match and highlight style in my theme, but It's not work. When I ran 'reset()'(ctrl+e) in textadept, It's works.Why?
> Is that wrong? Where should I insert in theme file or other file(eg. init.lua)?
> os:ubuntu 14.04, textadept:8.0
>
> code:
> ```lua
> -- Indicators.
> local INDIC_BRACEMATCH = textadept.editing.INDIC_BRACEMATCH
> buffer.indic_fore[INDIC_BRACEMATCH] = property_int['color.base0B']
> buffer.indic_style[INDIC_BRACEMATCH] = buffer.INDIC_DOTBOX
> buffer.indic_alpha[INDIC_BRACEMATCH] = 255
> buffer.indic_outline_alpha[INDIC_BRACEMATCH] = 100
> local INDIC_HIGHLIGHT = textadept.editing.INDIC_HIGHLIGHT
> buffer.indic_fore[INDIC_HIGHLIGHT] = property_int['color.base04']
> buffer.indic_alpha[INDIC_HIGHLIGHT] = 255
> buffer.indic_style[INDIC_HIGHLIGHT] = buffer.INDIC_BOX
> ```
> theme url https://github.com/chanble/ta-theme-monokai

Whenever you change a theme file, new buffers will reflect changes, but
the current buffers usually will not. Therefore you should typically reset
or restart Textadept in order for it to take effect, as you have done.
This is normal behavior.

Cheers,
Mitchell

-- 
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 13 May 2015 - 08:43:47 EDT

This archive was generated by hypermail 2.2.0 : Thu 14 May 2015 - 06:26:58 EDT