Custom language in github repository
Asked Answered
C

2

13

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

Cesium answered 17/6, 2016 at 19:7 Comment(3)
"Language Savant. If your repository's language is being reported incorrectly, send us a pull request!"Australasia
@Australasia It isn't being reported incorrectly. I just want to use my own language of my own design.Cesium
I know this is an old question but I would like to know this, too.Ezzo
S
6

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

Shawanda answered 13/8, 2017 at 12:40 Comment(0)
C
2

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

Cowardly answered 9/4, 2017 at 14:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.