Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom language in github repository

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.

enter image description here

like image 987
Spooky Avatar asked Jun 17 '16 19:06

Spooky


1 Answers

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).

like image 97
pchaigno Avatar answered Sep 30 '22 13:09

pchaigno