AutoIndent

Hi,

I am creating a code editor that will be used to edit Visual Basic Scripts. I've created my own config.xml file that is being used for the syntax highlighting.

Currently when I add an If statement to the EditControl it will be formatted as shown below:

If a = b Then


End If

However if I add an ElseIf statement to the If statement it is formatted like this:

If a = b Then

ElseIf

End If

I would like the AutoIndent to format it as shown below:


If a = b Then

ElseIf

End If

Does anybody know if this is possible and if so how should my config.xml file be changed?


Many Thanks, Andy

I am using Essential Studio 4.4.0.51 and VS.NET 2005

2 Replies

AD Administrator Syncfusion Team January 25, 2007 11:45 PM UTC

Hi Andy,

Our apologies for the delayed response. It is possible to format the ElseIf statement. I have attached a sample that illustrates this. Let me know if this meets your requirements.

Thanks for your patience.

Regards,
Ebenezer.P

rel='nofollow' href=http://www.syncfusion.com/Support/user/uploads/54992_a8f32b3a.zip>sample


AM Andy Mash January 29, 2007 10:12 AM UTC

Thanks for the help, its just what I wanted.

Andy

Loader.
Up arrow icon