What version of prettier-plugin-tailwindcss are you using?
v0.2.7
What version of Tailwind CSS are you using?
v3.3.1
What version of Node.js are you using?
v18.14.1
What package manager are you using?
npm
What operating system are you using?
Working remote via SSH. I guess my web hoster uses Debian.
Reproduction URL
https://github.com/MichaelvanLaar/bugreport-prettier-plugin-tailwindcss-in-combination-with-plugin-php
Describe your issue
When I try to use prettier-plugin-tailwindcss in PHP files (in this case, templates files of Kirby CMS) there seems to be a conflict with @prettier/plugin-php – despite using a .prettierrc file as described in the documentation.
As long as no PHP tags exist in a PHP file, everything works as it should. But as soon as typical PHP output is present (something like <?= $page->title() ?> or any other PHP code) each opening < of <?php resp <?= causes the following error: Unexpected character "EOF"
Without prettier-plugin-tailwindcss Prettier has no problem with the PHP files.
Tested with the file /site/templates/default.php in the reproduction repository.
What version of
prettier-plugin-tailwindcssare you using?v0.2.7
What version of Tailwind CSS are you using?
v3.3.1
What version of Node.js are you using?
v18.14.1
What package manager are you using?
npm
What operating system are you using?
Working remote via SSH. I guess my web hoster uses Debian.
Reproduction URL
https://github.com/MichaelvanLaar/bugreport-prettier-plugin-tailwindcss-in-combination-with-plugin-php
Describe your issue
When I try to use
prettier-plugin-tailwindcssin PHP files (in this case, templates files of Kirby CMS) there seems to be a conflict with@prettier/plugin-php– despite using a.prettierrcfile as described in the documentation.As long as no PHP tags exist in a PHP file, everything works as it should. But as soon as typical PHP output is present (something like
<?= $page->title() ?>or any other PHP code) each opening<of<?phpresp<?=causes the following error:Unexpected character "EOF"Without
prettier-plugin-tailwindcssPrettier has no problem with the PHP files.Tested with the file
/site/templates/default.phpin the reproduction repository.