Re: [code] [textadept] diff mode for textadept

From: Mitchell <>
Date: Mon, 10 Jun 2013 10:14:21 -0400 (Eastern Daylight Time)


On Mon, 10 Jun 2013, Benjamin Kober wrote:

> Hi,
> it would be great to have something like vimdiff for textadept. Right
> now it seems to be impossible to implement it because the lexer depends
> always on lpeg patterns and can not be related to the contents of
> another buffer.
> What about providing a function in lexer which could (if set) overwrite
> the way _rules where handled and returns a table with folds and tokens?
> Another problem are the lines that exist in one file and not in the
> other (thus have a need for blank space in a buffer which is not a
> blankline).
> Any ideas on this?

If you set the lexer to 'text' or create a blank lexer, you should be able
to manually set styles through the API. This is definately a difficult
task though, and I'm also not sure if it's possible at the moment.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Mon 10 Jun 2013 - 10:14:21 EDT

This archive was generated by hypermail 2.2.0 : Tue 11 Jun 2013 - 06:26:13 EDT