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

AutoIndent in VBScript

Thread ID:

Created:

Updated:

Platform:

Replies:

88234 Jul 17,2009 02:00 PM UTC Aug 21,2009 04:45 AM UTC WinForms 1
loading
Tags: EditControl
John Brett
Asked On July 17, 2009 02:00 PM UTC

Hi,
Can you tell me how to get AutoIndent to work in VBScript syntax?
As far as I can see, the current code seems to work around the definition of a block lexem. Ideal for C++, C#, XML, HTML &c but not so good for VBScript.
I don't really want to define a single lexem encapsulating IF expr THEN statement and IF expr THEN statements ELSEIF expr THEN statements ELSE statements ENDIF. That would really challenge my regular expression writing abilities.

Is there a straightforward way to indicate that a particular lexem should indent/outdent?

John

Nandakumar R [Syncfusion]
Replied On August 21, 2009 04:45 AM UTC


Hi John,

I regret for the inconvenience. Your DirectTrac incident for the same questions has been udpated.

There is no predefined AutoIndent configuration for VBScript in EditControl. You can use the VBNET Configuration settings for this.

[C#]
this.editControl1.LoadFile(@"VBScriptSource.vbs");
this.editControl1.ApplyConfiguration(KnownLanguages.VBNET);
this.editControl1.AutoIndentMode = AutoIndentMode.Smart;

Regards,
Nanda

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

;