【发布时间】:2019-06-02 15:13:52
【问题描述】:
我有一个包含多个文件的项目。主要是 JavaScript、HTML、CSS,还有 Solidity。 项目核心是关于 Solidity,所以我希望 Git 显示为语言 Solidity。
我创建了.gitattributes 并添加了以下内容:
*.sol linguist-detectable=true
*.html linguist-detectable=false
*.css linguist-detectable=false
*.js linguist-detectable=false
但是,现在显示为空白。 任何人都知道我做错了什么或如何解决这个问题?
【问题讨论】:
-
见github.com/github/linguist;该扩展不在
languages.yml中。 -
@jonrsharpe 感谢您的回答。然而 Solidity 出现在 language.yml 中: Solidity: type: programming color: "#AA6746" ace_mode: text tm_scope: source.solidity language_id: 237469032
标签: git github github-linguist