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 heightCtrl-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 heightMore info & download at http://michael.tyson.id.au/2009/03/27/align-comments-in-textmate/Cheers,Michael--m: (+61) 0407 754 124aim: mikerusselltysontwitter: MichaelTyson
_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate