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

Often times I'll click on a random link to a .sh or .py or .cpp or ... file in Firefox, and all I want is to view the code. I don't have a Firefox handler set up for every text file extension under the sun, and I don't want to have to. Is there an easy way to force Firefox to view the file as text instead of trying to save (or open in external app)?

share|improve this question
up vote 11 down vote accepted

Maybe you should give this addon a try. I've never used it but it looks like it might work for you.

share|improve this answer
I use that addon, it works pretty well. – Powerlord Sep 18 '09 at 18:08
Good old firefox...this was originally reported as a bug 9 years ago. This extension was made 3 years ago. Bug still not fixed...but at least I can use the extension. – davr Sep 18 '09 at 21:13
Yes this is a great addon. It's really annoying that the world is moving away for this way of working (take chrome that wants to save everything) – Davide Jun 30 '14 at 16:31

Open options and go to the applications tab, maybe that will help. Other than that, I'm not sure. Try searching for an extension.

share|improve this answer
Applications tab: that would require me to add something for each and every file type, I was hoping to do it all at once. extension: I looked, but couldn't find any that did what I wanted. Hence why I am asking on here – davr Sep 18 '09 at 16:29

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.