Indenting selection

Topics: Developer Forum, User Forum
Jan 12, 2012 at 10:55 AM

How do I indent the current selected/highlighted lines?

 

From this post http://scintillanet.codeplex.com/discussions/34870 it suggests iterating the lines but they are not all neccessarily selected and the post is very old so maybe there is a different way?

 

I'm working with new code with Scintilla.Net 2.2 but we have legacy code using 2.0 which seems to work by just doing Scintilla.Commands.Execute( ScintillaNet.BindableCommand.Tab );.  However that does not work in 2.2 but I think the reason it does not work is forget the code, just putting some text into the control and selecting it and pressing tab replaces the text with the tab where as in 2.0 it indents the selection.  Is there a way to get this functionality turned on as it is what i want and I think would make the bindable approach work.

 

Thanks

Jan 12, 2012 at 3:31 PM

Sorry that was user error.  It works fine.