Disable Token Coloring

SyntaxEditor for Windows Forms Forum

Posted 18 years ago by Jake Pearson - Software Developer, Alion Science and Technology
Avatar
Hi,
Is there an easy way to temporarily turn off the color coding of tokens? I tried setting the Document.Language property to null, but that caused an exception. I'm using the latest version.

thanks,
Jake

Comments (2)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You can use the SyntaxLangauge.PlainText langugage and it will stop coloring but will still tokenize words. In v4.0 we have a new Document.LexicalParsingEnabled property that when set to false, will not build any tokens for the document and will not colorize the text.


Actipro Software Support

Posted 18 years ago by Jake Pearson - Software Developer, Alion Science and Technology
Avatar
That worked, thanks.
The latest build of this product (v24.1.0) 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.