Skip to content

Format PHP + HTML + JS + CSS at once? (Wordpress) #846

@kkmuffme

Description

@kkmuffme

Will it be/is it possible when using prettier + the coming PHP plugin, to prettify a .php file that contains php + html + inline js (<script>) + inline css (<style>)?

Atm I am using phpcs + eslint at the moment, which struggle and output a complete chaos of indentation unless it was already correct (& even then they sometimes mess it up, if its a mixed file, like it's often encountered in WP core & plugins)

I am available for testing & can supply some test files that were absolutely butchered by phpcsfixer/eslint, just let me know how I can help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions