Everything gets into a comment
]]>Hi There,
Nice plugin, do you think you could add some indentation for <script></script> tags. I’m not meaning the JS between them.. Just so anything starting and ending with <script></script> sits in line with the rest of the HTML. I have numerous plugins injecting their inline JS but it doesn’t align with the rest of the HTML.
]]>WP-Beautifier would be the perfect addition to my favorite plugins collection, but it does wrong indentation of IE conditional comments like f.e.:
<!--[if lt IE 8 ]><html xmlns="https://www.w3.org/1999/xhtml" lang="de-AT" class="no-js ie7"><![endif]-->
<!--[if IE 8 ]><html xmlns="https://www.w3.org/1999/xhtml" lang="de-AT" class="no-js ie8"><![endif]-->
<!--[if IE 9 ]><html xmlns="https://www.w3.org/1999/xhtml" lang="de-AT" class="no-js ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html xmlns="https://www.w3.org/1999/xhtml" lang="de-AT" class="no-js">
<!--<![endif]-->
It indents in v 1.3.1 every single line, so that the last <html> tag gets indented by 4 tabs (or whatever rule you’ve given at indentation settings).
Best & thanks,
Volker E.
Hey Bro,
it would be awesome if you could make an update for your sweet plugin and make it work safely with the new WordPress version 3.2.2 ??
]]>Hi Till,
excellent plugin you made there.
I was wondering what is the purpose of changing the style of quotation marks from single ‘ to double ” ?
]]>Would is be possible to specify the indentation character?
For instance – it currently indents with tabs, but I’d like it to use spaces.
I can fork it for now and have it do that.
But later down the road – that would be a killer feature.
If it’s currently possible let me know! ^_^
]]>Howdy!
I tried to install the plugin and go the following error:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /html/wp-content/plugins/wp-beautifier/beautifier.php on line 389
I looked at the line and basically what it’s doing is appending to an array.
See: https://php.net/manual/en/control-structures.foreach.php
As of PHP 5, you can easily modify array’s elements by preceding $value with &. This will assign reference instead of copying the value.
So the plugin is PHP5 dependant.
$ php -v
PHP 4.4.8
My server doesn’t have it so I cannot use the plugin.
Just a heads up!
]]>I really like this plugin, but I had to disable it as it was preventing Google AdSense ads from displaying in my sidebar.
I’m using WordPress 2.9.2 and I have the AdSense code in a “Text” widget. I may try using an AdSense manager type plugin to see if it corrects this problem.
Thank you for your effort on this plugin, sorry about the bug!
]]>When this plug-in is activated all theme related styling is removed and all text is outputted as plain text.
]]>