Snippets and $selected$

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Ashton - Developer, Schema Solutions LLC
Avatar
In a snippet I am trying to create, I am wanting to show a dialog when the user starts the snippet and have the user specify some information in a dialog based off of the text that comes from the $selected$ replaced (ie. the text that was selected before the snippet was invoked).

Is there a way to do this (ie. get the text that was inserted for the $selected$ replacement?

Thanks,

Ashton

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes you can grab the current selection from within a CodeSnippetActivating event handler. That occurs before the code snippet is activated.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 9 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.