Intelliprompt link with language definition

SyntaxEditor for WPF Forum

Posted 11 years ago by vijaykumar
Version: 12.2.0573
Avatar

HI,

 

 

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.

session.Items.Add(

Comments (1)

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

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 13 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.