Skip to content

Syntax highlighting in blame mode broken (or different from normal mode) for some files #24383

@eric-j-ason

Description

@eric-j-ason

Description

Some files get highlighted differently when viewed in blame mode as compared to when viewed in normal mode. Example.

Most files beginning with #!/usr/bin/env bash do not get highlighted at all in blame mode. Example. I found one example of #!/usr/bin/env bash that does get highlighted, but when I put the same file on my own server, the highlighting breaks also for that file.

Gitea Version

1.20.0+dev-566-g8cc60ee01

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

bild
bild

Git Version

Whatever is on <try.gitea.io>

Operating System

Whatever is on <try.gitea.io>

How are you running Gitea?

try.gitea.io

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions