Re: [code] [textadept] tab_width vs. indent

From: Mitchell <m.att.foicica.com>
Date: Sun, 10 Mar 2013 16:29:17 -0400 (EDT)

Robert,

On Sun, 10 Mar 2013, Robert wrote:

> On Sun, Mar 10, 2013 at 8:40 PM, Mitchell <m.att.foicica.com> wrote:
>> On Sun, 10 Mar 2013, Robert wrote:
>>
>>> Hi Mitchell,
>>>
>>> the buffer fields tab_width and indent were changed a while ago (was
>>> this in Scintilla?). Is the documentation correct here? It sounds as
>>> if they should have the same value.
>>>
>>> tab_width (number)
>>> The number of space characters represented by a tab character. The
>>> default value is 8.
>>>
>>> indent (number)
>>> The number of spaces used for one level of indentation. The default
>>> value is 0, which matches the tab size.
>>
>>
>> Scintilla did not change anything. I don't fully understand why there are
>> two values so I wanted to use only tab_size and keep indent at its default
>> value to minimize confusion. The documentation is correct.
>
> Thanks for the explanation, this makes sense.
> Still,
> "The default value is 0, which matches the tab size."
> sounded (to me at least) as it would match tab_width/size.

So I read it as: if indent == 0, then the number of spaces to use as
one level of indentation matches the tab size.

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 Sun 10 Mar 2013 - 16:29:17 EDT

This archive was generated by hypermail 2.2.0 : Mon 11 Mar 2013 - 06:29:38 EDT