Re: [code] Disabling auto-complete boxes and bracket matching in comments

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Tue, 10 Dec 2013 16:33:57 +0000

On Tue, Dec 10, 2013 at 03:55:02PM +0000, Rob Kendrick wrote:
> On Tue, Dec 10, 2013 at 03:42:04PM +0000, Chris Emerson wrote:
> > Hi,
> >
> > On Mon, Dec 09, 2013 at 10:26:44PM +0000, Rob Kendrick wrote:
> > > I've hunted for what seems hours (about 4 minutes) and cannot find a
> > > way of disabling the autocomplete and bracket/quote matching in
> > > comments. Is there a way of doing this that I've missed?
> >
> > If I'm understanding you correctly, I think you want:

(Obviously I didn't, sorry)

> > textadept.editing.AUTOPAIR = false
[...]
> > textadept.editing.TYPEOVER_CHARS = false
[...]
> Won't that disable it everywhere, rather than just in comments?

Yes, it will.

Ok, you could make your comments be an embedded lexer, which could have
different auto-pair matches by setting eg
textadept.editing.char_matches.comment to an empty table.

Regards,

Chris

-- 
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 Tue 10 Dec 2013 - 11:33:57 EST

This archive was generated by hypermail 2.2.0 : Wed 11 Dec 2013 - 06:49:55 EST