I find the answers to What is the difference between GitHub and gist? unsatisfying, and I'm wondering if the difference (partially) lies in their treatment of HTML. In particular, I'm wondering:
.html
, the HTML code is not interpreted by the browser (why?).Is it possible to point others to an HTML file on github.com such that when they view the file, they view the HTML page rather than its source?
Only by using Github Pages
Normally on github, and even when the extension in the URL bar is .html, the HTML code is not interpreted by the browser (why?).
Because the purpose of Github is to manage code, not to host webpages.
URLs do not have file extensions. Browsers determine what to do with content based on the Content-Type header.
When an HTML page is viewed on gist.github.com, the HTML page is indeed seen rather than its source. Is this the main (or a main) feature of the difference between github and gist?
It doesn't when I test it.
Github proper is for hosting Git repositories.
Gist is for showing ad-hoc code samples managed by git, but without the full interface to the repository.