Hello all,
I'm working on a command that generates some functions for a set of variables, and I'd like to print out the result in line with the text that is selected. Is there any really clean way to do this that I'm not aware of? I need to get the tab indentation of one of the selected lines of text.
Thanks,
Michael
On 16 May 2007, at 05:06, Michael Jackson wrote:
I'd like to print out the result in line with the text that is selected. Is there any really clean way to do this that I'm not aware of? I need to get the tab indentation of one of the selected lines of text.
If you set the command to “Insert as Snippet” (not Text) it'll automatically be indented as per the language‘s indentation rules (as with auto-indent on pasting). This may not be what you want, but you didn't say what the selected text is or what language you're writing the command in, so I can't offer a code alternative.