plugin-php
plugin-php copied to clipboard
Output error with PHP comment and HTML output
@prettier/plugin-php v0.16.3 Playground link
Input:
<?php
if ($foo) {
// Example comment
?>
<div></div>
<?php
} ?>
Output:
<?php
if ($foo) {<?php
// Example comment
?>
<div></div>
<?php } ?>
Any updates for these issue ? this is crucial.
Unfortunately not. This is why the README states
We're considering the plugin to be stable when pure PHP files are formatted. Formatting of files that contain mixed PHP and HTML is still considered unstable - please see open issues with the tag "inline" for details.
Any help on this topic is much appreciated - it is probably the most challenging issue of this project, though.