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 looking for a plugin that will display me the text of HTML files in QuickLook rather than a preview of the rendered HTML.

Does anyone know of such a plugin?

share|improve this question
up vote 2 down vote accepted

You are looking for qlcolorcode. qlcolorcode allows you to have syntax highlighting in your quicklook preview:

share|improve this answer

qlcolorcode didn't display HTML files by default on my installation of 10.8. I could get it to display them by adding public.html and public.xhtml to CFBundleDocumentTypes:LSItemContentTypes in ~/Library/QuickLook/QLColorCode.qlgenerator/Contents/Info.plist and logging out and back in.

You could also remove /System/Library/QuickLook/Web.qlgenerator/, but it also handles webarchive and svg files. Removing the entries for public.html and public.xhtml from the Info.plist didn't seem to work.

share|improve this answer

I had to get rid of the Web.qlgenerator to make this work, using either the QLColorCode or the QLStephen plugins, in OSX Mavericks.

share|improve this answer

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.