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

From: chanble <chanble_cn.att.163.com>
Date: Wed, 13 May 2015 21:03:41 +0800 (CST)

Sorry, I can't express clearly.
Change brace match color that is work, but change brace style(INDIC_DOTBOX) is not work, after I restart textadept.
High light style also( high light's style is strange, It's style is grey background not box).
Their style is ok after reset it.
Chen Bo

At 2015-05-13 20:43:47, "Mitchell" <m.att.foicica.com> wrote:
>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.
>

-- 
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 - 09:03:41 EDT

This archive was generated by hypermail 2.2.0 : Thu 14 May 2015 - 06:27:00 EDT