[TxMt] insert block comment

Allan Odgaard throw-away-2 at macromates.com
Thu Dec 6 06:02:42 UTC 2007


On 5 Dec 2007, at 00:03, Jasper van der Meulen wrote:

> [...] when i comment a line with cmd-alt-/ (insert comment block)  
> while i'm standing in front of the line the output becomes
> [...]
> Is it possible that the current line / (selected) lines are inside  
> the tag ?

It should already work with a selection.

To make it work with current line (for no selection) go to Bundles →  
Edit Commands… and locate the command (in the Source bundle) and  
change the “[Selection] or [Nothing]” to “[Selection] or  
[Line]”.

It doesn’t do the extra newlines and tab when there is input though.  
But you can modify the script, if you prefer that.




More information about the textmate mailing list