1. Download the excellent qlcolorcode bundle from Google Code

2. Add the following line to QLColorCode.qlgenerator/Contents/Info.plist:
<string>public.data</string>
So that it looks like this:
3. In QLColorCode.qlgenerator/Contents/Resources/colorize.sh, add (and customize) the highlighted code, which you can
get at github:
4. Oops! Forgot, you may have to sudo touch /path/to/QLColorCode.qlgenerator for changes to take effect
I’m often jumping from file to file in Rails, so I really wanted Quicklook support for my template files. Unfortunately, the suggestions I found online were confusing and incomplete.
Here’s a really easy way to get it done – but no syntax highlighting
1. Show the contents of TextEdit’s package

2. Open Info.plist in a text editor… like TextEdit, perhaps… hmm…
3. Anyway, add the following snippet (find the code on github):

Put it just before the following section:

4. Customize
- UTTypeDescription - put in description of your choice (although you probably don’t need to)
- UTTypeIdentifier – apparently (and this is what was missing from other descriptions), you just make something up here
- public.filename-extension – add as many extensions as you want to map to this file type
5. Gloat

Recent Comments