Skip to content

[Discussion] Fontification of code blocks in review comments #12

@gavv

Description

@gavv

I have hacked pr-review to apply syntax highlighting in code blocks inside comments. I'm using shr-tag-pre-highlight package + some advices. I also implemented "dimming" colors - i.e. after applying normal syntax highlighting for the language, colors are then desaturated and darkened a bit.

Please let me know if you like the approach and would like to upstream these changes - I can integrate it into pr-review and make a PR. Otherwise if this does not fit the project, feel free to close the issue.

Here is how it looks like:

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions