Store, turn off and restore SmartIndent from macro
Posted: Thu Nov 03, 2005 10:49 am
Is there a way to store, turn off and restore the SmartIndent mode from a macro.
I'm attempting to insert a comment in the style, note the leading space prior to the */:
When I have smart indent turned on the line following the */ get indented one space, so I'd like to control the SmartIndenting from the macro to avoid this or is there an alternative ?
I'm using MoveLineHome before each insert to avoid getting an extra space on the */ line frmo the * line's indent but I can't control that for the line following the whole comment block.
I'm attempting to insert a comment in the style, note the leading space prior to the */:
Code: Select all
/*
*
*/
I'm using MoveLineHome before each insert to avoid getting an extra space on the */ line frmo the * line's indent but I can't control that for the line following the whole comment block.