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. Image for the cookie policy date
close icon

AutoIndent in VBScript

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

1 Reply

NR Nandakumar R Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon