driade / phpfmt8

PHP formatter for Sublime Text 4, with PHP 8 support.
BSD 3-Clause "New" or "Revised" License
47 stars 2 forks source link

Format HTML inside PHP file #64

Closed ahmadyogi543 closed 9 months ago

ahmadyogi543 commented 10 months ago

Hi, first of all thanks for the great project, it help me a lot to format my PHP code. I just wondering how can I use this formatter to format HTML inside the PHP file. I already try use it but the HTML doesn't get formatted. How can we do this?

Thanks in advance and sorry for my bad english 😄

driade commented 9 months ago

Hi @ahmadyogi543 , sorry for the delay. This package just formats PHP, not HTML. It also formats PHP inside HTML, such as

<html>
<?php
    echo "hola";
?>
</html>

but not the html itself