v4.0 Changes to Smart Indent?

SyntaxEditor for Windows Forms Forum

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
One change we're considering doing is to the SmartIndent event. Right now the IndentAmount is tabstop-based. However in certain circumstances it might be nice to be able to specify something like two tabs and a couple spaces.

So what we might do is change the IndentAmount to be the number of spaces instead. So to emulate existing functionality you would simply multiply the IndentAmount by the Document.TabSize.

The reason this came up is in looking at how VS does XML smart indent. If you press ENTER while in a tag, it will indent to the tabstop of the < but then will indent an additional space.

With the change, it will make the smart indent feature more flexible so that it can handle that sort of thing. Any comments?

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after this thread was created.

Add Comment

Please log in to a validated account to post comments.