0

I have a project with several files. Mostly JavaScript, HTML, CSS but also Solidity. The project core is about Solidity, so I want Git showing as language Solidity.

I created .gitattributes and add the following:

*.sol linguist-detectable=true
*.html linguist-detectable=false
*.css linguist-detectable=false
*.js linguist-detectable=false

However, now, is appearing blank. Anyone know what am I doing wrong or how I can fix this?

Peter
  • 2,004
  • 2
  • 24
  • 57
  • 2
    See https://github.com/github/linguist; that extension isn't in `languages.yml`. – jonrsharpe Jan 07 '19 at 23:11
  • @jonrsharpe thanks for your answer. However Solidity appears in languages.yml: Solidity: type: programming color: "#AA6746" ace_mode: text tm_scope: source.solidity language_id: 237469032 – Peter Jan 07 '19 at 23:32

1 Answers1

2

I resolved it changing the first line to *.sol linguist-language=Solidity Thanks!

Peter
  • 2,004
  • 2
  • 24
  • 57