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