<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On 16 May 2007, at 05:06, Michael Jackson wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">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.</FONT></P> </BLOCKQUOTE></DIV>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).<BR><DIV>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.</DIV></BODY></HTML>