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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Essential Edit: Custom syntax colouring & Scientific notation

Thread ID:





57317 Mar 1,2007 12:11 PM UTC Mar 5,2007 02:51 PM UTC WinForms 2
Tags: EditControl
Paul Wallace
Asked On March 1, 2007 12:11 PM UTC

I am using VB 2005 (.NET 2.0) to create an editor using Essential Edit V4.4 and am using custom syntax highlighting.

My xml file has the following definitions for a a number (from SyncFusions samples).

However these do not work for numbers in Scientific notation.

For example, the text 0.631e-6
would format the leading 0 and trailing 6 as numbers, the . and - as operators, and the 631e as plain text.

Does anyone know the correct lexem definition to properly handle scientific notation?

Any help would be very much appreciated.


Administrator [Syncfusion]
Replied On March 2, 2007 07:12 PM UTC

Hi Paul,

It is possible to highlight 0.631e-6 as number using the IsComplex and OnlyLocalSublexems attribute. I have attached a sample that illustrates this. Let me know if this meets your

Thank you for your patience.



Paul Wallace
Replied On March 5, 2007 02:51 PM UTC


Yes, that works for my application, thanks.

However, if you were to type, say, 5-6 in your sample, the - would not be highlighted as an operator. This is not an issue for my application, but may be for someone else.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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