We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Changing SyntaxColoringEnabled property

Thread ID:

Created:

Updated:

Platform:

Replies:

19894 Oct 5,2004 11:14 PM Oct 7,2004 02:27 PM Windows Forms 1
loading
Tags: EditControl
Trevor Henderson
Asked On October 5, 2004 11:14 PM

Hello all, I have a dual-use EditControl - it is either in plain text mode or in full syntax highlighting mode. When in plain text mode I turn off syntax colouring by setting the above property to False. Works well. But going the other way does not reapply the colouring until I modify the contents of the control. Can I force a repaint/recolour? I could do this by having two controls and show/hide them but that''s more work and more controls. Here''s hoping

Administrator [Syncfusion]
Replied On October 7, 2004 02:27 PM

Hi Trevor You could do what you are seeking by modifying the SettingFile property of the Edit Control. For example in the EmbeddedIniFile sample that ships with Essential Edit you could use the following code snippet: if (this.editControl1.SettingFile=="") { this.editControl1.SettingFile= "..//..//HelloWorldLanguage.ini"; } else this.editControl1.SettingFile=""; to toggle between the EditControl displaying KeyWords in colors specified and in plain text mode. Regards Arun

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;