Re: Feature request: intelligently exclude single quote character from AUTOPAIR

From: phayz <russelldicken....at.gmail.com>
Date: Thu, 29 Sep 2011 15:28:53 -0700 (PDT)

On Sep 29, 10:46am, mitchell <c....at.caladbolg.net> wrote:
> Russell,
>
> On Mon, 5 Sep 2011, phayz wrote:
> > On Sep 5, 11:52�pm, mitchell <c....at.caladbolg.net> wrote:
> >> Hi,
>
> >> On Sun, 4 Sep 2011, phayz wrote:
> >>> I often use Textadept not for code editing but for editing of files in
> >>> XML format, most often documentation. Within this documentation I'm
> >>> often using the single quote character (') in English to indicate
> >>> ownership - e.g. Mitchell's dog. :D When I type the single quote
> >>> character here though, it's automatically paired and I need to delete
> >>> the second one.
>
> >>> My feature request is that the single quote character only be AUTOPAIR-
> >>> ed if the character is not immediately followed by the letter 's'.
>
> It's probably easiest to put
>
> _m.textadept.editing.char_matches.xml = {
> [40] = ')', [91] = ']', [123] = '}', [34] = '"', [60] = '>'
>
> }
>
> in your init.lua and stick to using double-quotes on a regular basis.
>
> mitchell

Wow! I'll try that and see if it works as I expect.

Regards,
Received on Thu 29 Sep 2011 - 18:28:53 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:22:30 EST