Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some files, like txt can be opened in Chrome. How do I open py files that are linked on the page, and prevent them from bringing up the download dialog box?

Like this, for example It is unnecessary to download the file. I just want to preview it in the browser.

share|improve this question
I normally just drag and drop the file into the browser. Of course that will just allow you to view it not edit it. – Ramhound Feb 26 '14 at 14:33
This actually has something to do with plaintext files being linked on the page. Local files are easy to preview, with Quick Look on the Mac, for example. I've updated the question. – Kit Feb 26 '14 at 14:44
I found this previous question. It doesn't seem to have a solution though. – Kat Feb 27 '14 at 20:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.