Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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

I'm a programmer, and I find Mac's QuickLook a really great feature for quickly becoming familiar with a particular code base. Basically, I open up a Finder window in the directory where my code files are, I push the spacebar (to evoke QuickLook), and then I arrow key up/down/left/right through all the files and scroll within QuickLook as needed.

The problem that I run into are files with no extension and files with unknown extension. How can I convince the Mac to attempt to QuickLook these files as text files (which they usually are). Also, it's really nice how QuickLook automatically colors the code based upon the type of code it thinks it is. How can I extend the types of code files that the Mac recognizes? For instance, I want to be able to QuickLook the code in a *.html.erb file or a *.js.erb file.

share|improve this question
up vote 4 down vote accepted

Take a look at the QuickLook Stephen plugin referenced in this thread:

Great Quick Look plugins

It opens almost everything I throw at it (as long as they are text based).

share|improve this answer
I think this plugins didn't work in snow-leopard at least didn't work for me :( – Am1rr3zA Feb 5 '11 at 12:08
Works in Snow Leopard for me... – Robert S Ciaccio Feb 5 '11 at 18:36
Hey, great advice. I wish it had syntax highlighting for *.html.erb files, but at least I can read them now. Cool! – John Berryman Feb 5 '11 at 22:06
For link purposes, a question that mentions QLStephen: Choose a default app for opening files with no extension? – Graham Perrin Aug 11 '11 at 16:58
Since all links are broken, here's updated link to QLStephen plugin QLStephen – Curgo Oct 9 '13 at 9:22

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.