Skip to content

[Feature Request] Diff and Language Highlights #2704

Open
@loren138

Description

@loren138

Feature request

I'd like to be able to use diff and language highlighting as provided by this official prism extension: https://prismjs.com/plugins/diff-highlight/

There was a recent PR which improved Prisms auto-loader so it properly recognizes the diff syntax which might be helpful in implementing this: https://github.com/PrismJS/prism/pull/2580/files

What problem does this feature solve?

Diffs can have diff and language specific highlighting

What does the proposed API look like?

Just like the prism docs I can use diff-javascript as the language to get diff syntax and javascript syntax highlighted.
I can also use diff-javascript diff-highlight to get full line highlights and javascript highlighted.

How should this be implemented in your opinion?

Official support using the already coded prism plugin.

Are you willing to work on this yourself?

Yes

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