Hacker News new | ask | show | jobs
by vito 5094 days ago
Is there something like this for Chrome? Really annoying having code downloaded instead of displayed.
2 comments

No. It has to be sent as text/plain for Chrome to view the file if it is on a remote server. The MIME types that are opened in the browser instead of downloaded are hardcoded within the Chrome source.

Numerous feature requests have been submitted[1] to update this functionality and to provide a preferences pane for users to decide how they want different file types handled, but they have been ignored as this behavior is a design decision.

[1] http://code.google.com/p/chromium/issues/detail?id=118204&#3...

Sort of. Some of it will be controlled by the website more than anything else, but anything that comes over ultimately as text/plain can be handled nicely by Sight: https://chrome.google.com/webstore/detail/epmaefhielclhlnmjo...