Hi folks,

In case anyone else is interested, I've just put together a command that aligns comments in a block - a trivially modified version of Chris Poirer's 'align assignments' script.

It fixes this:

imagecopy($image, $frame, 
          ($x=max($width-$this->topRightCap[kCapWidth], $this->topLeftCap[kCapWidth])), // Destination x
          0,  // Destination y
          $x,  // Source x
          0,  // Source y
          min($this->topRightCap[kCapWidth], $width-$this->topLeftCap[kCapWidth]),  // Source width
          $this->topRightCap[kCapHeight]); // Source height

Ctrl-Option-Command-/, then:

imagecopy($image, $frame, 
          ($x=max($width-$this->topRightCap[kCapWidth], $this->topLeftCap[kCapWidth])), // Destination x
          0,                                                                            // Destination y
          $x,                                                                           // Source x
          0,                                                                            // Source y
          min($this->topRightCap[kCapWidth], $width-$this->topLeftCap[kCapWidth]),      // Source width
          $this->topRightCap[kCapHeight]);                                              // Source height

More info & download at http://michael.tyson.id.au/2009/03/27/align-comments-in-textmate/

Cheers,

Michael

-- 
Michael Tyson | michael.tyson.id.au

m: (+61) 0407 754 124
aim: mikerusselltyson
twitter: MichaelTyson