GitHub doesn't show my code [view raw]

Hello, my problem is GitHub doesn’t show my code in file .class. When I click on “view raw” it wants me to download the file. It happens only in my project. What did I do wrong? How can i display my code?

Hi @naiki00,

Thank you for being here! That is a strange situation, do you have a repo you can share where you are seeing this behavior for us to take a look? If the repo is private please write to and If you haven’t already, please contact us at with the info, so we can look into that further.

Hi, I am having the same issue. My repo is

I tried chaging the file format from .scpt, to .js and now .txt but always the same issue. 

I’m having the same issue. Hoping this post will get any new replies…

I am having the same issue, did anyone find out what happened?

I hame same problem
after git commit, raw version has not renew

Me too. (Although my file is am MQL4 .mqh file, but nevertheless I’ve seen other .mqh files handled (viewed) just fine).
How do we configure a file extension to be viewable and not forced to download it?

[EDIT] One of the staff kindly answered with in this thread. In summary: Watch your .gitattributes and your file encodings!