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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With