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.
Syncfusion Feedback

Are there no supplied configuration files for C# syntax highlighting?

Thread ID:

Created:

Updated:

Platform:

Replies:

49546 Sep 20,2006 11:37 PM UTC Sep 21,2006 03:59 PM UTC Windows Forms 2
loading
Tags: EditControl
Thomas W. Brown
Asked On September 20, 2006 11:37 PM UTC

The subject kinda says it all... The Legacy editor came with some canned highlighting configuration but I can''t find any sign that anything was supplied with the new stuff.

Perhaps someone has a configuration file for C# somewhere in the public domain??

Thanks,
-- TB

Administrator [Syncfusion]
Replied On September 21, 2006 12:40 PM UTC

Hi Thomas,

Thanks for your interest in Essential Edit.

EditControl uses a prebuilt configuration file that includes configuration settings for C#, VB.NET, SQL, JAVA, Delphi, HTML, XML, Pascal ,Text and Undefined language. Configuration settings for C# language can be applied using the ApplyConfiguration() method.

Example:

EditControl.ApplyConfiguration(KnownLanguages.CSharp);

I have attached a sample that illustrates this.
sample


It is also possible to define custom configuration file for C# and apply configuration using Configurator.Open() and ApplyConfiguration() methods.

Example:

EditControl.Configurator.Open(CustomConfig.xml);

EditControl.ApplyConfiguration("C#");

I have attached a sample that uses a custom configuration file for C# language.
sample

Please let me know if you have any questions.

Thanks for your patience.

Regards,
Manohari.R

Thomas W. Brown
Replied On September 21, 2006 03:59 PM UTC

Most excellent, thank you very much!!

Using the KnownLanguage configuration is exactly what I was looking for!

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.

Warning Icon 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.Close Icon

;