Closed zemanyak closed 5 years ago
Still having this issue?
Yep. It never worked again.
Did you ever try deactivating all the other plugins to see if it was a conflict?
Then make a php file like test.php
<?php
/**
* Test
*/
?>
<span></span>
Then either right click and choose Format HTML in PHP or save the file. Should look like this if it's working as expected.
<?php
/**
* Test
*/
?>
<span></span>
Only the HTML outside of the PHP is formated.
This
<?php
/**
* Test
*/
echo '<span>
<div>
</div>
</span>'
?>
<span></span>;
Becomes this
<?php
/**
* Test
*/
echo '<span>
<div>
</div>
</span>';
?>
<span></span>
This is expected behavior it skips everything inside a PHP tag. This is not for formatting any part of the PHP code, this strictly formats the HTML code outside of the PHP tags.
I don't think I would be able to support formatting HTML inside of a PHP echo.
Hello and thank you for this useful extension.
I've been using it quite a lot and I've been very satisfied with it. Yesterday it just stopped working all of a sudden and I can't get it to work again.
I tried everything I could think of : uninstall/reinstall extension, delete extension folder, update VSC... I even tried to reinstall Visual Studio Code and all the extensions from scratch.
My PHP is formatting correctly on save.
Here are my settings
Any idea ?