Answer the question
In order to leave comments, you need to log in
How to format php + html code?
There are many thousands of lines of code in which php and html are mixed:
<?php
if (1) :
?>
<div class="">test
</div>
<?php
echo "test";
endif;
?>
Answer the question
In order to leave comments, you need to log in
mixed php and htm
I work in VS Code with WordPress, where PHP is tightly mixed with HTML.
The PHP Intelephense plugin seems to do the trick. I am satisfied.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question