Re: Change language on click

SyntaxEditor for Windows Forms Forum

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
If you are loading a dynamic language XML defintion, you can do:
editor.Document.LoadLanguageFromXml();
The "SyntaxEditor Dynamic Languages Guide / Loading and Saving" documentation topic has more info on that sort of thing.

Or you can just set this property if you already have a SyntaxLanguage instance loaded up:
editor.Document.Language = mylanguage;


Actipro Software Support

Comments (2)

Posted 9 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Already tried that, but nothing happens. I'll look into it deeper. Thanks so far.
Posted 9 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Seems I need to take a few steps away from the project. I called the language before something was created... (foolish)

Sorry for the inconvenience.
The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.