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.

Essential Edit: Custom syntax colouring & Scientific notation

Thread ID:

Created:

Updated:

Platform:

Replies:

57317 Mar 1,2007 07:11 AM Mar 5,2007 09:51 AM Windows Forms 2
loading
Tags: EditControl
Paul Wallace
Asked On March 1, 2007 07:11 AM

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.

Cheers,
Paul




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

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
requirements.

Thank you for your patience.

Regards,
Ebenezer.P

sample

Paul Wallace
Replied On March 5, 2007 09:51 AM

Hi,

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.

regards,
Paul


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.

;