Re: [code] [textadept] A bunch of newbie questions

From: Mitchell <m.att.foicica.com>
Date: Wed, 19 Oct 2016 17:32:33 -0400 (EDT)

Hi,

On Wed, 19 Oct 2016, Robert Gieseke wrote:

> Am 22/08/16 um 16:31 schrieb Mitchell:
>> On Mon, 22 Aug 2016, Anton Pastukhov wrote:
>>> Thank you Mitchell and Gabriel for the quick and helpful reply!
>>>> There is no way to set two edge columns at a time. Only one can be defined.
>>> Any plans on implementing it in the future? This is a small feature, but nice
>>> to have.
>>
>> No, this would be done in Scintilla[1], the editing component Textadept
>> uses.
>
> This seems to have been added in Scintilla 3.7
> "EDGE_MULTILINE and SCI_MULTIEDGEADDLINE added to allow displaying
> multiple vertical edges simultaneously. "
>
> http://www.scintilla.org/ScintillaDoc.html#SCI_MULTIEDGEADDLINE

Yes, this will be in the next nightly[1]. In your
`~/.textadept/properties.lua` you can put:

     buffer.edge_mode = buffer.EDGE_MULTILINE
     buffer:multi_edge_add_line(column1, color1)
     buffer:multi_edge_add_line(column2, color2)

Or wrap the lines above in a function connected to `events.VIEW_NEW` in
your `~/.textadept/init.lua`.

Cheers,
Mitchell

[1]: http://foicica.com/hg/textadept/rev/bab85310f6ad

-- 
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 19 Oct 2016 - 17:32:33 EDT

This archive was generated by hypermail 2.2.0 : Thu 20 Oct 2016 - 06:52:54 EDT