phpactor / phpactor

Mainly a PHP Language Server with more features than you can shake a stick at
MIT License
1.42k stars 129 forks source link

unable to format php/html mixed content #2762

Open rhjdvsgsgks opened 2 days ago

rhjdvsgsgks commented 2 days ago

php-cs-fixer stated they dont have plan to support formating mixed html/php at https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/3702 . could you add some trick to split and pass only the php part to formatter, so that formatter wont skip format anything.

https://github.com/junstyle/vscode-php-cs-fixer seems like did something similar

dantleech commented 2 days ago

Splitting and formatting PHP is possible if not necessarily straight forward, formatting HTML not (and not the business of Phpactor).

I'm not personally going to work on this however happy to answer questions about it