Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting on GitHub #4

Closed
jrappen opened this issue Dec 9, 2022 · 3 comments
Closed

Syntax highlighting on GitHub #4

jrappen opened this issue Dec 9, 2022 · 3 comments

Comments

@jrappen
Copy link

jrappen commented Dec 9, 2022

This should fix highlighting:

# ./.gitattributes

*.sublime-color-scheme      linguist-language=JSON-with-Comments
*.hidden-color-scheme       linguist-language=JSON-with-Comments

*.hidden-tmTheme            linguist-language=XML-Property-List

when viewing on GitHub.

Reference:

https://github.com/github/linguist/blob/master/lib/linguist/languages.yml

Not sure if this caching issue (github-linguist/linguist#4496) still exists, though.

/cc FYI @facelessuser

@facelessuser
Copy link

@jrappen So, editing .gitattributes allows GitHub to highlight unrecognized file extensions? I assume that is what this is insinuating?

@jrappen
Copy link
Author

jrappen commented Dec 9, 2022

@facelessuser yessir

@mauroreisvieira
Copy link
Member

Thanks, @jrappen for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants