Hirse / brackets-beautify

Brackets Extension to beautify JavaScript, HTML, and CSS files.
MIT License
34 stars 3 forks source link

Messing with wordpress code #5

Closed dawidadach closed 9 years ago

dawidadach commented 9 years ago

Hi, I really apprecatie your extension however when try to using this to develop wordpress theme after hiting Control Shift L its messing up with function i.e.

Before: <?php $args = array ( 'theme_location' => 'primary'); ?>

After: <?php $args=a rray ( 'theme_location'=> 'primary'); ?>

So its adding extra space in "array" word.

Hirse commented 9 years ago

Yes, I have read about this kind of issue before. The reason for this is that the library I am using doesn't support PHP. I was under the impression that they at least fixed breaking PHP, but apparently that is not the case. Please open an issue with them regarding the actual formatting.

Regarding this extension, I can only advise you to not use it for .php files at the moment and deactivate Beautify-on-Save for those by adding this to the brackets.json:

{
    "language": {
        "php": {
            "hirse.beautify.onSave": false
        }
    }
}