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

bracket indent

Thread ID:

Created:

Updated:

Platform:

Replies:

36030 Oct 19,2005 02:24 AM UTC Dec 8,2009 04:33 AM UTC WinForms 6
loading
Tags: EditControl
Administrator [Syncfusion]
Asked On October 19, 2005 02:24 AM UTC

Is bracket indent feature available in EditControl? We need any text enclosed within "{" and "}" be automatically indented just like Vs.net.

Administrator [Syncfusion]
Replied On October 19, 2005 03:48 PM UTC

Hi Susan, EditControl does support indentation when the Enter key is pressed after the opening brace, when it is in Smart AutoIndentMode, but it does not outdent the closing brace. We have an open Feature Request #118 in this regard and will try our very best to take care of it as soon as possible. You could track the progress of this feature at this link below : Feature Request #118 Let me know if you need anything more. We appreciate your interest in Syncfusion products. Regards, Bharath.

Brian Hublein
Replied On October 14, 2009 06:33 PM UTC

Will this be fixed in any upcoming versions?

Thanks,
Brian Hublein
Cyberlogic

Brian Hublein
Replied On October 21, 2009 12:05 PM UTC

Any ideas??

Thanks

Nandakumar R [Syncfusion]
Replied On November 3, 2009 10:14 AM UTC

Hi Brian,

This feature has been implemented. Please refer to the following Vol.4 RC and let me know if this helps.

http://www.syncfusion.com/support/forums/general/91019/essential-studio-2009-vol4-rc-v74015-available-for-download

Regards,
Nanda

Brian Hublein
Replied On December 4, 2009 03:26 PM UTC

Hi Nanda,

I'm using version 7.4.0.20 and it still seems to be doing the smae thing. Is this the right version or is there a newer one? I have run the debug version and see the problem in the UpdateIndentation function in StreamEditControl.cs. It looks like it takes the RenderedLexem as either spaces or a tab depending on how the control is set up. then later in the function it compares the RenderedLexem to a } and there is a mismatch so it doesn't un-indent. I guess this is the case because the { wasn't the last key press.

Maybe I'm just using the wrong version but I'm pretty sure it's the latest one.

Let me know if you need some more information.

Thanks,
Brian Hublein

Nandakumar R [Syncfusion]
Replied On December 8, 2009 04:33 AM UTC

Hi,

Thanks for your patience. I used the code sample under,

\\My Documents\Syncfusion\EssentialStudio\7.3.0.20\Windows\Edit.Windows\Samples\2.0\Product Showcase\Custom Code Editor\CS

and was able to see the behaviour as in this video file. The EditControl outdents properly. Can you please try these and let me know if you are seeing any different behaviour.

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

;