horst Posted April 23, 2017 Share Posted April 23, 2017 To show our *.module files with the correct PHP syntax highlighter is now possible on Github. With new repos, you first need to add a .gitattributes file to it. After that you can view *.module files with the PHP syntax highlighter applied: MetadataExif.module So, this doesn't work with already created / comitted repos by simply adding the .gitattributes file. But it will find its way through different caching layers on github if you add it to your repos and further committs to them. (https://github.com/github/linguist/issues/1792#issuecomment-286379822) 8 Link to comment Share on other sites More sharing options...
clsource Posted April 23, 2017 Share Posted April 23, 2017 this is wonderful news, thank you. here are the official docs https://github.com/github/linguist#overrides 2 Link to comment Share on other sites More sharing options...
Jan Romero Posted December 16, 2022 Share Posted December 16, 2022 Sorry for unearthing this thread, but I can’t figure this out… https://github.com/processwire/processwire/blob/master/.gitattributes What does "$ cat .gitattributes" do here? I know what cat is, but why is this line in this file? Link to comment Share on other sites More sharing options...
LostKobrakai Posted January 3, 2023 Share Posted January 3, 2023 Nothing: https://github.com/processwire/processwire/commit/188d0e150ddbcac366a662e274997c77a50af66d 1 Link to comment Share on other sites More sharing options...
Recommended Posts