[TxMt] Reformat php?

Dan Lowe dan at tangledhelix.com
Sun May 6 07:47:37 UTC 2007


On May 6, 2007, at 2:22 AM, Brian Armstrong wrote:

> and I run the reformat on it, or ^Q, then I get this:
>
> // make sure it doesn't crash in an ugly way if
> (!function_exists('foo')) { die("this function required"); }
>
> Not very helpful, and you notice that the 'if' is now on a comment  
> line!

^Q is a paragraph reformat, which as you have found is not so great  
for code. I believe what you are looking for is a way to (re-)indent  
code, in which case you want this:

	Text -> Indent Selection ( cmd-opt-[ )

Note that you need to have a selection active for this to be  
available. Otherwise it will act on the current line only.

  -dan





More information about the textmate mailing list