DynamicSyntaxLanguage

SyntaxEditor for WPF Forum

Posted 6 years ago by Swarna
Version: 13.2.0592
Avatar

In older version of SyntaxEditor you have a DynamicSyntaxLanguage class. We used this class to create a syntaxlanguage yusing our own xml file. How can this be implemented in new version. I don't see any information on SynamicSyntaxLanguage in this new version's document. Please help.

Comments (1)

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

Hi Swarna,

If you load up the Language Designer app, you can import a SyntaxEditor for WinForms dynamic language XML file there.  That will convert it over into a .langproj which can be edited in the Language Designer.  Then you can choose to output a .langdef file or language class files.  Basically, once you import the WinForms XML file in, you can refer to the documentation for help. 

The main difference between the WinForms and WPF version in this area is that syntax languages in the new framework are just generic service providers (as opposed to having special language classes like DynamicSyntaxLanguage).  There is an ILexer service which is a lexer for the language.  DynamicLexer implements ILexer and can be used to load up .langdef files that are output from the Language Designer.


Actipro Software Support

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.