On Tue, 11 Sep 2007 23:35:46 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I want to try and implement the 'elastic tabstops' in Lazarus. See the
> link below for more details on 'elastic tabstops'.
> 
> I have a few questions before I start.
> 
> 1.  Can I extend the editor behavior via a Lazarus addon package?  Or
> must I edit the underlying SynEdit component directly. A optional
> addon package would be nice as a start, to test the feature before it
> (possibly) becomes a default feature. Like what I done with the
> Toolbar Editor package.

Almost all the TabStops code is in synedit.pp. The IDEIntf lacks the
ability to override this behaviour.

 
> 2.  If it's not possible via a Lazarus addon package, what SynEdit
> unit should I be looking at? The Components/SynEdit directory contains
> a lot of files - though most seem related to syntax highlighting.
> 
> 3. Could I hook into the CodeTools API to intercept the tab character
> and modify the text buffer like that.  Sometimes I would need to
> modify lines before and after the current line being edited.

The codetools do not much yet with tabs.
Maybe when the simple beautifier is replaced with a real beautifier.


> For more info on what 'elastic tabstops' are:
>   http://nickgravgaard.com/elastictabstops/


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to