Re: How to add "blank" margin on each side of the buffer's display?

From: mitchell <mforal.n....at.gmail.com>
Date: Sun, 6 Jun 2010 19:54:40 -0700 (PDT)

Hi Russell,

On Jun 3, 2:03 am, phayz <russelldicken....at.gmail.com> wrote:
> I don't often use Texatdept's folding capability so I have the folding
> margin hidden, but I still find line numbers useful so they are
> visible. Although the buffer's background colour is different to that
> of the line number's background colour, I would like to add a small
> visual buffer between the two.
>
> On reading Scintilla's documentation I thought this would be as simple
> as adding the following line to my buffer's view.lua, but with this
> added, the line margin disappears and the caret's colour is then not
> the colour specified by my theme. I can't understand where I might be
> going wrong.
>
> buffer:set_margin_left = 4

buffer.margin_left = 4

It can be confusing to go from Scintilla's doc to ta's Lua interface.
Typically, properties are table fields in 'buffer', use '.', and drop
'get/set' from their name. Functions use ':' and retain the full name.

Mitchell

>
> Regards,
>
Received on Sun 06 Jun 2010 - 22:54:40 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:46:58 EST