We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't know how to describe the situation. So let me give you an example... So suppose this code extract:
<?php if ( isset( $_GET['tax'] ) ) { global $wpdb; $terms = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}woo_filters_mapping WHERE tax_slug = '%s';", sanitize_text_field( $_GET['tax'] ) ) ); ?> <div id="menu-management" style="margin-top: 2em;"> <form id="terms-mapping" method="post" enctype="multipart/form-data"> </form> </div> <?php }?>
Please notice the difference in the tab kind: 4 spaces for the PHP code and 1 literal tab for HTML code
So, when I format the document, it becomes like this:
For some reason the closing of the PHP block, along with the closing bracket of the if() statement move to a new line.
The text was updated successfully, but these errors were encountered:
Yes, unfortunatelly the formatter does not prefectly work when mixing PHP and HTML. It's a known bug hard to fix, I'll try to take a look at it.
Sorry, something went wrong.
No branches or pull requests
I don't know how to describe the situation. So let me give you an example... So suppose this code extract:
Please notice the difference in the tab kind: 4 spaces for the PHP code and 1 literal tab for HTML code
So, when I format the document, it becomes like this:
For some reason the closing of the PHP block, along with the closing bracket of the if() statement move to a new line.
The text was updated successfully, but these errors were encountered: