문제

I write a lot of Geany snippets. I would like to add a snippet for %cursor% when writing snippets. I added this in the [Default] snippets:

cur=%cursor%

Problem being that will evaluate to placing the cursor, so disappears.

I am looking for an escape sequence for the %. I have tried \% and %% but no luck.

cur=%curso%cursor%%

is an OK workaround as I only need to add an r, but is not ideal.

도움이 되었습니까?

해결책

The % is escaped with {pc} in Geany, so:

cur={pc}cursor{pc}

expands to %cursor%

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top