Skip to content

Syntax highlight in diff and edit preview broken #7728

@silverwind

Description

@silverwind

The highlighting code currently assumes a pre > code structure to work but this is not given for diff and edit previews. Given that pre > code is problematic in regards to introducing extra whitespace for text selection, I think we should introduce a new exclusive HTML class for syntax highlighting and use that everywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions