[TxMt] Wrong indentation of HTML with PHP

Wolfgang _textmate at rumborak.de
Thu Dec 28 17:00:30 UTC 2006


Hi,

is this the wrong place to post this, or should I be more patient? ;-)

Wolfgang

At 19.12.2006, 12:40 Wolfgang wrote:

> Hello,
>
> just try to re-indent the following snippet with textmate and  
> wonder about it. ;)
>
> Is there a way to fix the indentation? In which bundle should it be  
> fixed? HTML oder PHP?
>
> <html>
> <header>
> 	<body>
> 		<?php
> 		$array['foo'] = array(
> 			'foo' => 'bar',
> 			'bar' => 'foo' );
> 		$array['bar'] = array(
> 			'foo' => 'bar',
> 			'bar' => 'foo'
> 			);
> 		?>
>
> 		<?php if (test == "") { ?>
> 			<ul>
> 				<li>foo</li>
> 				<li>bar</li>
> 			</ul>
> 		<?php } else { ?>
> 			<ul>
> 				<li>bar</li>
> 				<li>foo</li>
> 			</ul>
> 		<?php } ?>
> 	</body>
> </header>
> </html>
>
> Regards, Wolfgang
>
> ______________________________________________________________________
> 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
>




More information about the textmate mailing list