Skip to content

Add syntax highlighting to codeblocks in the docsΒ #9264

@Snailedlt

Description

@Snailedlt

Describe the problem

I really like diff blocks in the docs to show me the differences between two code snippets... but because there's no syntax highlighting it can become a bit hard to get a quick overview of the code blocks.

some examples from the new docs:
image
image

Describe the proposed solution

Add syntax highlighting to code blocks (this is what GitHub does in pull requests)

examples:
gif
image

Alternatives considered

Display diff's side-by-side like GitHub does:
image

Importance

would make my life easier

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