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

unindent

I have a question in regards to the indenting.

in my config file i have the following

AutoNameExpression=";FOLD\s*(?.*)\s*(|;)"
AutoNameTemplate="${text} "
BeginBlock=";FOLD"
EndBlock=";ENDFOLD"
Indent="true"
CollapseName=";FOLD"
IsCollapsable="true"
IsCollapseAutoNamed="true"
IsComplex="true"
IsEndRegex="false"
Type="KeyWord"
>

everything indents but the problem is that i would like ";ENDFOLD" to be unindented. is this possible?



1 Reply

VS Vallarasu S Syncfusion Team June 9, 2011 11:36 AM UTC

Hi Steve,

Thanks for your interest in Syncfusoin products.

For Smart AutoIndentMode EditControl has implementations to un-Indent at the EndBlock, Do you have the AutoIndentMode set to Block? I was unable to reproduce this scenario with the AutoIndentMode set to Block.

If you could send us a sample to demonstrate the behavior I can try for an alternate to un-indent at the EndBlock. In general the solution would be to find the EndBlock of the Indent lexem and if it matches the BeginBlock, we can go for deleting the white space appended at the beginning of the line.

Thanks,
Vallarasu S.



Loader.
Live Chat Icon For mobile
Up arrow icon