Re: [textadept] Snippets with Tabs

From: mitchell <c....at.caladbolg.net>
Date: Thu, 28 Apr 2011 08:59:06 -0400 (Eastern Daylight Time)

Robert,

On Thu, 28 Apr 2011, Robert wrote:

> On Wed, Apr 27, 2011 at 5:48 PM, mitchell <c....at.caladbolg.net> wrote:
>> Robert,
>>
> [...]
>> What you are seeing happens when you use a snippet tab_width of 2 [spaces]
>> while your document has a tab_width of 4. The indent sizes need to match in
>> order to insert the proper indentation. This is why it is recommended to use
>> tab characters in snippets. (By the way, your patch does not handle multiple
>> levels of indentation properly.)
>
> I was afraid I had overlooked something. Could you give an example of
> a multiple levels snippet?

snippets.foo = [[
foo
   bar
     baz
]]

mitchell
Received on Thu 28 Apr 2011 - 08:59:06 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:05:30 EST