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 would like to use "space" to preview *.yml files directly out of the finder on Mac OS X.

I think I have to tell finder to launch the text file quick view handler for files with that type and this has something to do with universal type identifiers (UTI.)

But that's as far as I was able to get.

Can anyone give me the magic formula? Thanks!!

share|improve this question
up vote 2 down vote accepted

I use Ciarán Walsh’s TextMate in QuickLook plugin.

This is a TextMate plug-in and a QuickLook generator which renders QuickLook previews (for certain filetypes) using the TextMate syntax highlighter. Currently it’s configured to highlight Perl, PHP, Ruby, Shell, C headers and Obj-C(++). Note: this effectively sets up TextMate as a server for the syntax highlighting, so it won’t work unless TM is running (QuickLook will just fall back to the standard preview if it’s not).

Here is a convenience link to download the plugin and you can read more about it on Ciarán's web page.

This is what it looks like when I QuickLook a .yml file:

.yml QuickLook

share|improve this answer

I've had great luck with the free QLStephen plugin for Quick Look. It displays lots of other plaintext formats.
Probably worth a shot to see if it will work with YAML files.

You can get it here.

share|improve this answer
Works for YAML for me, on Lion 10.7! Thanks – Chris Feb 17 '12 at 22:56
This should be the selected answer. Also, for installation instructions: – Volte Sep 8 '15 at 16:02

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.