A PHTML formatter restructures PHP-HTML template files with consistent indentation across mixed PHP and HTML content. Used in Magento, WordPress, and classic PHP MVC frameworks, PHTML templates embed PHP control structures directly in HTML markup. This formatter detects <?php ?> blocks and indents the HTML content inside foreach, if, and while loops automatically.

0 lines / 0 chars
Formatted PHTML will appear here...

Load Example