Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create PHP beautifier or add to html beautifier #714

Closed
bitwiseman opened this issue Jun 16, 2015 · 4 comments
Closed

Create PHP beautifier or add to html beautifier #714

bitwiseman opened this issue Jun 16, 2015 · 4 comments

Comments

@bitwiseman
Copy link
Member

See #532.
Aside from not breaking php, there have been requests to beautify it.

@yustnip
Copy link

yustnip commented Jul 20, 2015

In addition. PHP-inserts have a strange indentation. Before:

<div class="row">
    <?php $the_query = new WP_Query( array( 'post_type' => 'work', 'posts_per_page' => 4 ) ); ?>
    <?php if( $the_query -> have_posts() ) : ?>
    <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>

After:

<div class="row">
    <?php $the_query = new WP_Query( array( 'post_type' => 'work', 'posts_per_page' => 4 ) ); ?>
        <?php if( $the_query -> have_posts() ) : ?>
            <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>

@shaneparsons
Copy link

+1 for PHP Beautifying.

The default behaviour seems to be to either do nothing, or put everything on one line..

P.S. I'm using it via drewhamlett/brackets-beautify btw..

@Oxicode
Copy link

Oxicode commented Nov 30, 2015

+1

@bitwiseman
Copy link
Member Author

Fixed a while ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants