Re: [code][textadept] Advanced use of Textadept Lexers

From: Mitchell <>
Date: Thu, 27 Feb 2014 16:54:01 -0500 (Eastern Standard Time)


On Thu, 27 Feb 2014, Chris Emerson wrote:

> Hi,
> On Thu, Feb 27, 2014 at 07:01:35AM +0100, Richard Philips wrote:
>> I think this problem is not so different as how textadept is styling code;
>> textadept associates styling information with tokens. In much the same
>> manner I would like to associate actions with tokens.
> I'd also find it useful using the lexing infrastructure to do things other
> than pure styling. The folding functionality is very close to what's needed
> for auto-indenting, for example.

As I mentioned in #2 in my previous reply, you can call Textadept's lexers
directly. In your case, you might want to try calling `lexer.fold()` and
interpreting the output to accomplish what you're looking for.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Thu 27 Feb 2014 - 16:54:01 EST

This archive was generated by hypermail 2.2.0 : Fri 28 Feb 2014 - 06:36:14 EST