github 存储库中的自定义语言
Custom language in github repository
Git 显示构成存储库的语言的百分比。但是,对于我的一个项目,我想使用我自己的自定义语言。我知道我可以创建一个 .gitattributes 文件并放置 *.py linguist-language=Python
以使所有 py 文件被识别为 Python,但是我如何将文件扩展名识别为我自己的语言,例如 Foo?我已经尝试 *.flm linguist-language=Foo
但它不起作用。
您可以将 PR 发送到此存储库 (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
目前没有办法做到这一点。
如果您的 语言已经在 github.com 的数百个存储库 中使用,您可以 add support for it in the Linguist open source project。
此功能已在 Linguist 存储库中被询问过两次:特别是 #2627 and #2598. There are, however, some technical and legal concerns to address before this could be implemented (see #2627)。
Git 显示构成存储库的语言的百分比。但是,对于我的一个项目,我想使用我自己的自定义语言。我知道我可以创建一个 .gitattributes 文件并放置 *.py linguist-language=Python
以使所有 py 文件被识别为 Python,但是我如何将文件扩展名识别为我自己的语言,例如 Foo?我已经尝试 *.flm linguist-language=Foo
但它不起作用。
您可以将 PR 发送到此存储库 (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
目前没有办法做到这一点。
如果您的 语言已经在 github.com 的数百个存储库 中使用,您可以 add support for it in the Linguist open source project。
此功能已在 Linguist 存储库中被询问过两次:特别是 #2627 and #2598. There are, however, some technical and legal concerns to address before this could be implemented (see #2627)。