Re: [code] [textadept] Is there a way to enclose text in Snippets?

From: cryo shock <axteffekt.att.gmail.com>
Date: Thu, 23 Mar 2017 22:20:20 +0100

what seems to work though is, when you put two zero placeholders like this:
snippets.context['emph'] = '{\\em %0%0<selected_text>}'

cheers

2017-03-23 22:17 GMT+01:00 Robert Gieseke <rob.g.att.web.de>:

> Am 23/03/17 um 22:12 schrieb cryo shock:
> > snippets.context['emph'] = '{\\em %0%1<selected_text>}' -- cursor jumps
> > in front of }
> >
> > The problem then again is, that with %0%1 enclosing a highlighted text
> > ends up deleting the highlighted text.
>
> Right, that's what I noticed ...
>
> --
> 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.
>
>

-- 
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 Thu 23 Mar 2017 - 17:20:20 EDT

This archive was generated by hypermail 2.2.0 : Fri 24 Mar 2017 - 06:54:25 EDT