github存储库中的自定义语言 [英] Custom language in github repository

查看:107
本文介绍了github存储库中的自定义语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Git显示了构成存储库的语言的百分比.但是,对于我的一个项目,我想使用自己的自定义语言.我知道我可以创建一个.gitattributes文件并放置*.py linguist-language=Python以使所有py文件都被识别为Python,但是如何使文件扩展名被识别为我自己的语言,例如Foo?我已经尝试过*.flm linguist-language=Foo,但是它不起作用.

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.

推荐答案

目前尚无办法.

如果您的语言已经在github.com上的数百个存储库中使用,则可以此功能已在Linguist存储库中被问过两次:#2627 #2598 .但是,在实施此技术之前,需要解决一些技术和法律问题(请参见#2627 ).

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

这篇关于github存储库中的自定义语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆