Re: Change language on click

SyntaxEditor for Windows Forms Forum

Posted 13 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 13 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 13 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 (v24.1.0) 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.