vscode-phpfmt
vscode-phpfmt copied to clipboard
Hi, this does not appear to format HTML in a PHP file - is that correct?
I highlighted some HTML in my php file, right click and choose format selection
<?php
echo("This is PHP");
?>
<html>
<head>
</head>
<body>
<h1>hello</h1>
</body>
</html>
Right click and choose format selection
At the bottom of the editor I see a message:
phpfmt: Format failed - syntax errors found
In the output I see
Command failed: php -l /var/folders/4k/wf26gdpj47j_kjy14vfvsxqm0000gn/T/temp-koauixe.php
Formatting the whole document also doesn't format the HTML properly. Is the extension supposed to format HTML in a PHP file? Thanks!