【问题标题】:.gitattributes not showing the proper language (linguist-detectable).gitattributes 未显示正确的语言(语言学家可检测)
【发布时间】: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


【解决方案1】:

我解决了它,将第一行更改为*.sol linguist-language=Solidity 谢谢!

【讨论】:

    猜你喜欢
    • 2018-11-12
    • 1970-01-01
    • 1970-01-01
    • 2012-12-18
    • 2023-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多