Reputation: 1851
Git shows the percentage of what languages make up a repository. However, for one of my projects I want to use my own custom language. I know I can create a .gitattributes file and place *.py linguist-language=Python
to make all py files recognized as Python, but how would I make a file extension recognized as my own language, such as Foo? I've tried *.flm linguist-language=Foo
but it doesn't work.
Upvotes: 13
Views: 2661
Reputation: 13063
There is currently no way to do that.
If your language was already used in hundred of repositories on github.com, you could add support for it in the Linguist open source project.
This feature has already been asked twice on the Linguist repository: #2627 and #2598. There are, however, some technical and legal concerns to address before this could be implemented (see #2627 in particular).
Upvotes: 6
Reputation:
You could send PR to this repository (https://github.com/github/linguist). Just adding a language is not difficult, but GitHub staff accepts only languages that are used in many repositories. Let's read contribution document: https://github.com/github/linguist/blob/master/CONTRIBUTING.md
Upvotes: 2