<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Code Cleaner and Indenter</title>
	<atom:link href="http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/</link>
	<description></description>
	<lastBuildDate>Mon, 01 Mar 2010 14:26:11 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: booyah</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-480</link>
		<dc:creator>booyah</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-480</guid>
		<description>doh, the comment form yanked my indents!  well hopefully you understand anyway...</description>
		<content:encoded><![CDATA[<p>doh, the comment form yanked my indents!  well hopefully you understand anyway&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: booyah</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-479</link>
		<dc:creator>booyah</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-479</guid>
		<description>Bravo! Works very nicely to a point.  Thanks for your hard work...  

The only request I have from looking at the output it produced from my code:

When I&#039;ve got multi-dimensional key-value arrays declared on multiple lines it turns them into a single line.  I would like to see an options to make this go the other way ie. take a single line array and format it over multiple lines for better readability, and leave existing multiple line array declarations as is (or tidy up the indenting if required).

eg.  
$myVar = array(
    &#039;key&#039; =&gt; &#039;value&#039;,
    &#039;key&#039; =&gt; array(
        &#039;key&#039; =&gt; &#039;value&#039;,
        &#039;key&#039; =&gt; &#039;value&#039;,
    ),
);

Also, +1 for open sourcing this as I&#039;m sure many developers would like to convert this into a macro/plugin for their development IDE of choice...</description>
		<content:encoded><![CDATA[<p>Bravo! Works very nicely to a point.  Thanks for your hard work&#8230;  </p>
<p>The only request I have from looking at the output it produced from my code:</p>
<p>When I&#8217;ve got multi-dimensional key-value arrays declared on multiple lines it turns them into a single line.  I would like to see an options to make this go the other way ie. take a single line array and format it over multiple lines for better readability, and leave existing multiple line array declarations as is (or tidy up the indenting if required).</p>
<p>eg.<br />
$myVar = array(<br />
    &#8216;key&#8217; =&gt; &#8216;value&#8217;,<br />
    &#8216;key&#8217; =&gt; array(<br />
        &#8216;key&#8217; =&gt; &#8216;value&#8217;,<br />
        &#8216;key&#8217; =&gt; &#8216;value&#8217;,<br />
    ),<br />
);</p>
<p>Also, +1 for open sourcing this as I&#8217;m sure many developers would like to convert this into a macro/plugin for their development IDE of choice&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sabeen Malik</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-240</link>
		<dc:creator>Sabeen Malik</dc:creator>
		<pubDate>Thu, 30 Jul 2009 07:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-240</guid>
		<description>Hey there,
thanks alot for trying it out and giving positive feedback .. i will be busy for the next couple of weeks but after that i fully intend to provide an update based on some of the feedback i have received from people like yourself. You can subscribe via the form on the right, so that any updates i make are available to your.
Regards
Sab</description>
		<content:encoded><![CDATA[<p>Hey there,<br />
thanks alot for trying it out and giving positive feedback .. i will be busy for the next couple of weeks but after that i fully intend to provide an update based on some of the feedback i have received from people like yourself. You can subscribe via the form on the right, so that any updates i make are available to your.<br />
Regards<br />
Sab</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Marschall</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-239</link>
		<dc:creator>Daniel Marschall</dc:creator>
		<pubDate>Thu, 30 Jul 2009 00:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-239</guid>
		<description>Hello and thank you very much for this great software! I was searching for something like that very long. I also made a program, but it did also align mutliline-strings, so it did not worked well. I would like to help in development and improve some things. Please leave me an email message, so I can send you my improved package.

At the moment I have 7 points where I have improvements:

1. The ending php tag &quot;?&gt;&quot; has a [TAB] in front. (not in the same level as the opening tag). Usually if I have no TAB before the beginning &quot;&quot;.

2. &quot;while (true)[NEW LINE]{&quot; will be converted into &quot;while (true){&quot;. Usually we should have a space between &quot;)&quot; and &quot;{&quot;.

3. If the user enables an optional setting, the cleaner could also remove line-breaks in multi-lined-strings. Example:

Your result at the moment:

[TABs]echo &#039;This is a very long string.[CRLF]
Yes, it also needs a second line.&#039;;

I think, this is better:

[TABs]echo &#039;This is a very long string.&#039;.&quot;\r\n&quot;.[CRLF]
[TABs+1]&#039;Yes, it also needs a second line.&#039;;

But be careful with the &quot;\r\n&quot;.
a) If in the original file there has no CRLF at this linebreak, then it shouldn&#039;t be a &quot;\r\n&quot;. It should be the line-break-style the original file had.
b) If the string which is broken is a double-quoted string (&quot;...&quot;), then we can insert the \r\n IN the string and do not need a concatenation.

(The +1 of the TAB-level could also be configurable)

4. If the user wishes an optional setting, the cleaner could cut too long lines into multiple lines. (Can be combined with my point #3)

5. The Tab4-Space thing should be configurable. Before I did TABs, I used 2 spaces, not 4. (too much tabbing at the spacebar)

6. Some users (like I do) want to normalize their PHP files to [CRLF] and do not want to mix them with other [CR] (MAC) and [LF] (Linux) files in their project. I think all PHP files should have [CRLF] because then they are readable in linux and mac. Vice versa, Linux or Mac files are not readable with some Windows applications like NotePad.

So, the user should choose the output format of his new PHP file: [CRLF], [CR] or [LF].

7. There could be a recursive tool which cleanes all PHP files in a whole directory (for use at local machines where all files have temporary write-permission)

Hope it helps you to improve it! Please write me an email; maybe we can work together at it!

Regards
Daniel Marschall</description>
		<content:encoded><![CDATA[<p>Hello and thank you very much for this great software! I was searching for something like that very long. I also made a program, but it did also align mutliline-strings, so it did not worked well. I would like to help in development and improve some things. Please leave me an email message, so I can send you my improved package.</p>
<p>At the moment I have 7 points where I have improvements:</p>
<p>1. The ending php tag &#8220;?&gt;&#8221; has a [TAB] in front. (not in the same level as the opening tag). Usually if I have no TAB before the beginning &#8220;&#8221;.</p>
<p>2. &#8220;while (true)[NEW LINE]{&#8221; will be converted into &#8220;while (true){&#8221;. Usually we should have a space between &#8220;)&#8221; and &#8220;{&#8221;.</p>
<p>3. If the user enables an optional setting, the cleaner could also remove line-breaks in multi-lined-strings. Example:</p>
<p>Your result at the moment:</p>
<p>[TABs]echo &#8216;This is a very long string.[CRLF]<br />
Yes, it also needs a second line.&#8217;;</p>
<p>I think, this is better:</p>
<p>[TABs]echo &#8216;This is a very long string.&#8217;.&#8221;\r\n&#8221;.[CRLF]<br />
[TABs+1]&#8216;Yes, it also needs a second line.&#8217;;</p>
<p>But be careful with the &#8220;\r\n&#8221;.<br />
a) If in the original file there has no CRLF at this linebreak, then it shouldn&#8217;t be a &#8220;\r\n&#8221;. It should be the line-break-style the original file had.<br />
b) If the string which is broken is a double-quoted string (&#8221;&#8230;&#8221;), then we can insert the \r\n IN the string and do not need a concatenation.</p>
<p>(The +1 of the TAB-level could also be configurable)</p>
<p>4. If the user wishes an optional setting, the cleaner could cut too long lines into multiple lines. (Can be combined with my point #3)</p>
<p>5. The Tab4-Space thing should be configurable. Before I did TABs, I used 2 spaces, not 4. (too much tabbing at the spacebar)</p>
<p>6. Some users (like I do) want to normalize their PHP files to [CRLF] and do not want to mix them with other [CR] (MAC) and [LF] (Linux) files in their project. I think all PHP files should have [CRLF] because then they are readable in linux and mac. Vice versa, Linux or Mac files are not readable with some Windows applications like NotePad.</p>
<p>So, the user should choose the output format of his new PHP file: [CRLF], [CR] or [LF].</p>
<p>7. There could be a recursive tool which cleanes all PHP files in a whole directory (for use at local machines where all files have temporary write-permission)</p>
<p>Hope it helps you to improve it! Please write me an email; maybe we can work together at it!</p>
<p>Regards<br />
Daniel Marschall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-235</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Tue, 21 Jul 2009 11:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-235</guid>
		<description>w00t!

Thankyou so much! you have helped me out a tonne!</description>
		<content:encoded><![CDATA[<p>w00t!</p>
<p>Thankyou so much! you have helped me out a tonne!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-177</link>
		<dc:creator>Denis</dc:creator>
		<pubDate>Wed, 24 Dec 2008 05:00:31 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-177</guid>
		<description>Nice tool, seems a bit buggy with switch case statements though. Good job.</description>
		<content:encoded><![CDATA[<p>Nice tool, seems a bit buggy with switch case statements though. Good job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CpILL</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-165</link>
		<dc:creator>CpILL</dc:creator>
		<pubDate>Thu, 06 Nov 2008 17:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-165</guid>
		<description>Man, you made my year with this one. So much pain gone now.... gone now...</description>
		<content:encoded><![CDATA[<p>Man, you made my year with this one. So much pain gone now&#8230;. gone now&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OOzy Pal</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-162</link>
		<dc:creator>OOzy Pal</dc:creator>
		<pubDate>Sun, 26 Oct 2008 17:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-162</guid>
		<description>Can your code handle utf8 lettering like hebrew, arabic, etc.</description>
		<content:encoded><![CDATA[<p>Can your code handle utf8 lettering like hebrew, arabic, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IgiX</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-146</link>
		<dc:creator>IgiX</dc:creator>
		<pubDate>Wed, 08 Oct 2008 19:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-146</guid>
		<description>Bug : plz, make a space before else ;) 

</description>
		<content:encoded><![CDATA[<p>Bug : plz, make a space before else <img src='http://www.decodephp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/comment-page-1/#comment-130</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 07 Sep 2008 20:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://decodephp.com/new2/?p=46#comment-130</guid>
		<description>Worked for me. Great tool, thanks from Argentina !</description>
		<content:encoded><![CDATA[<p>Worked for me. Great tool, thanks from Argentina !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
