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

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

2 Replies

AD Administrator Syncfusion Team 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


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

Most excellent, thank you very much!!

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

Loader.
Up arrow icon