gvim.exe --clean
<html>
<body>
<?php
echo "in PHP";
?>
<div>
<span>
in span
</span>
</div>
</body>
</html>
:set filetype=php
The code should be indented like this:
<html>
<body>
<?php
echo "in PHP";
?>
<div>
<span>
in span
</span>
</div>
</body>
</html>
9.1.443
OS: Windows 10 Home
Terminal: GUI
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
well, this seems a bit strange, to expect that the php filetype does HTML indenting. Perhaps the PHP indent script can check the syntax and return the HTML indent for HTML parts in php files. Assuming the php syntax script does already detect HTML within a php filetype (which I didn't check). I think the HTML indent script does something similar for JS indenting, so perhaps this could be an example on how to do it.
You may want to report over there and check with the maintainer if this is feasable.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Thank you, turns out here the maintainer explicitly says he won't support HTML indenting, explains why and links a solution.
I guess the issue can be closed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #14850 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.