[Geany] [snippet] insert comment through snippet

Eric Crastes eric.crastes at xxxxx
Thu Jul 19 11:11:08 UTC 2012


Excellent !!
I replaced << by __ and it works as expected !!
Thx


On Thu, Jul 19, 2012 at 12:02 PM, Lex Trotman <elextr at gmail.com> wrote:

> On 19 July 2012 19:27, Eric Crastes <eric.crastes at gmail.com> wrote:
> > Hello
> >
> > I modify quite often scripts written by other developer.
> > To identify my modifications, I have the habit to insert #<myname> at the
> > beginning and #</myname> at the end of my modification.
> >
> > I would like to be able to insert this 2 "tags" through a snippet.
> > Unfortunately, if I add :
> > #<=#<myname>%cursor%;</myname>
> > the line is considered as a comment and ignored
> >
> > same issue with :
> > <<=#<myname>%cursor%;</myname>
> > this time the second part is considered as a comment and ignored
>
> The problem isn't the second part, its the first part, the << isn't
> being recognised as a snippet because snippet names must be wordchars.
>  Unless you have re-defined them then thats only ASCII alphabetics,
> digits and _
>
> Cheers
> Lex
>
>
> >
> > Is it possible to achieve this ?
> > and how ?
> >
> > Thanks
> >
> > ericc
> >
> > _______________________________________________
> > Geany mailing list
> > Geany at uvena.de
> > https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
> >
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20120719/22a269a2/attachment.html>


More information about the Users mailing list