Skip to content

Can the PHP syntax highlighting (in Markdown ``` code blocks) work without <?php? #96

@Dima-369

Description

@Dima-369

In Zed, the highlighting only works when <?php is used:

Image

As a comparison, PhpStorm properly syntax highlights, even without <?php. I am very used to this behavior (and LLMs very often also spit out Markdown code blocks without it). Is there any way to have the same behavior in Zed?

I assume it could be some treesitter issue?

Image

As a note: In both Zed and PhpStorm, the PHP markdown code blocks render HTML with inline PHP fine.

Image

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