[TxMt] How to: Change command / format

Eric Coleman eric at aplosmedia.com
Sat Mar 4 06:23:41 UTC 2006


I added this to the PHP bundle "Misc" preferences:

shellVariables = (
		{	name = 'TM_COMMENT_START';
			value = '// ';
		},
		{	name = 'TM_COMMENT_END';
			value = '';
		},
		{	name = 'TM_COMMENT_MODE';
			value = 'line';
		},
	);

However, now I end up with:

     // function test()
//     {
//         //
//         echo 'blah';
//
//         $foo = 'bar';
//     }

Any way to fix that?

Eric Coleman

On Mar 4, 2006, at 1:16 AM, Eric Coleman wrote:

> I didn't know about command + / till the other day, however i've  
> run into a minor issue.
>
> If I have source like the following:
>
>     function do_me()
>     {
>         /* this was some old shit */
>         /*
>         $var = blah
>         */
>
>         echo 'hello';
>     }
>
> the command + / shortcut will turn it into:
>
>     /*function do_me()
>     {
>         /* this was some old shit */
>         /*
>         $var = blah
>         */
>
>         echo 'hello';
>     }*/
>
> which is deffinitly a no go.  how could I change it so that it  
> would result in:
>
>
>     // function do_me()
>     // {
>     //     /* this was some old shit */
>     //     /*
>     //     $var = blah
>     //     */
>     //
>     //     echo 'hello';
>     // }
>
>
>
> Thanks,
> Eric Coleman
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3696 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060304/c79bbc30/attachment.p7s>


More information about the textmate mailing list