Getting text of a codesnippet

SyntaxEditor for WPF Forum

Posted 2 years ago by Daisuke Nakada
Version: 17.2.0662
Avatar

Hi,

I want to get an inserted text (not a CodeText) from an ICodeSnippet instance.

For instance, I want to get the below string for IF snippet:

IF expression THEN
	statement
END_IF;

 Not this:

IF $exp1$ THEN
	$stm1$$end$
END_IF;

 

Is there a good way to do this?

 

Thanks.

Comments (2)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

No sorry, we don't have a public method that would provide all that replacement.  It happens behind the scenes when a code snippet template session is opened for the code snippet.


Actipro Software Support

Posted 2 years ago by Daisuke Nakada
Avatar

I see. Any way, thank you for your response.

Happy Holidays!

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.