[Geany-Users] a snippet for the %cursor%

Sean Noble sean.noble.72 at xxxxx
Sun Jun 23 14:44:03 UTC 2013


Excellent, that is exactly what I was after.

Sorry, for the lines with %snippet%, I meant to write %cursor%

Thanks!

On 23 June 2013 14:21, Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> On 14/06/2013 13:37, Sean Noble wrote:
>>
>> Hi,
>>
>> I am trying to add a snippet for %cursor% in the [Defaults] snippet area.
>>
>> cur=%snippets%
>>
>> This does not work as the %cursor% is transformed to the cursor
>> location when hitting tab. I am looking for an escape sequence,
>> something like:
>>
>> cur=%%snippet%% or
>> cur=\%cursor\%,
>>
>> such that a literal %cursor% is left after transforming. Those two
>> examples don't work, but perhaps there is a way?
>
>
> Hi,
> I'm not sure I understand the first two cur= lines, but perhaps you're
> asking how to escape the percent character? If so, try:
>
> cur={pc}cursor{pc}
>
> http://www.geany.org/manual/current/index.html#template-wildcards
>
> That replaces 'cur' with '%cursor%'.
>
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users


More information about the Users mailing list