镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

State of formatting php with html? #2445

Description

@1MikeMakuch

I was just looking for the current status regarding:

... Formatting of files that contain mixed PHP and HTML is still considered unstable - please 
see open issues with the tag inline for details.

If you want to use the plugin in production, we recommend limiting its scope to pure PHP files.

It looks like some progress has been made but wondering how far a long it is/isn't?

Thanks
Mike

Activity

  1. hackel commented on Dec 12, 2025

    @hackel
    Contributor

    I highly doubt that status has changed much, mostly because it's 2025 and none of us use PHP that way anymore. Maybe look into prettier-plugin-twig or prettier-plugin-blade for something a little more sensible than raw PHP in HTML!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions