OK, I've added this and it works great. The syntax is pure line noise to me...how do I change it from inserting one tab to two spaces (I always indent block comments to two spaces regardless of other indentation, so I'd like this to be consistently at two spaces).

Thanks!

2008/4/25 Ian Potter <mcsticky@gmail.com>:
On Apr 25, 2008, at 1:28 AM, Allan Odgaard wrote:
On 23 Apr 2008, at 17:57, Thomas Allen wrote:

[…]
I can't find a resource of all TM env. vars, but the PHP comments preference
includes values of /* and */ for TM_COMMENT_START_3 and TM_COMMENT_END_3,
respectively. What var can define my block comments' body?

The generic Toggle Comment command is not designed to support the configuration of such style. But it should be fairly simple to create an overload which is only active in PHP mode, you can even write it in PHP: http://ciaranwal.sh/2008/04/04/textmate-tip-using-php-for-commands :)

I found this snippet a while ago:

${TM_CURRENT_LINE/(.*\*\/$)|.*?(\/\*(?!.*\*\/)).*|.*/(?1:
:
(?2: )* )/}
Activation: ↩
Scope Selector: source.php comment.block

This one lines up your * but I'm sure you could modify it to left-align them all.

itp


______________________________________________________________________
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate