Skip to content

Apply .gitattributes syntax highlighting to code-review #10157

Description

@Primajin

Description

A file called .gitattributes in the root of a project tells Github how to color-code / syntax highlight unknown files.

*.myext linguist-language=JavaScript

Would tell Github to display all *myext files like it would display Javascript files - e.g. const abc would make the word const reddish and abc blueish.

However this only applies when looking at a file in the code file viewer. When reviewing such a file in a PR in the code-review panel it uses the plain, non-color coded text only mode.

I would like that it applies the same color coding in a code review as it does in the file view 🙏🏻

Example URLs

https://github.com/refined-github/refined-github/pull/1234/changes?w=1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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