SyntaxEditor for WPF Forum

Posted 10 years ago by Swarna
Version: 13.2.0592

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 10 years ago by Actipro Software Support - Cleveland, OH, USA

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 (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.