Intelliprompt link with language definition

SyntaxEditor for WPF Forum

Posted 12 years ago by vijaykumar
Version: 12.2.0573




How to bind elements from language defintion to editor to get the intelliprompt

ex :

i want to read data from langauge defintion file and add into below funtion.


Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA

Hello, you can get the language from your completion provider's RequestSession method via view.SyntaxEditor.Document.Language.  Then if you have info within a dynamic lexer there, you can do language.GetLexer() as DynamicLexer (make sure you import ActiproSoftware.Text namespace for that extension method) to get the dynamic lexer.  Find the appropriate lexical state within it and look at the pattern groups within that to find the patterns you want.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.