Snippets and $selected$

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by Ashton - Developer, Schema Solutions LLC
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?



Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v21.1.0) was released 13 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.