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?
Thanks!
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%'.
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@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@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users