Starting in OS X 10.5, Apple introduced the handy Quick Look feature, which of course enables you to preview a file by tapping the spacebar. If you’re like me, you probably use it regularly for quick glances at files that you don’t really need to open in your text editor. But it lacks one thing, one thing that makes reading long source files bearable: syntax highlighting.
I can’t believe it took me so long to find it, but there is an extension for Quick Look that adds color coding to source files in most common languages. QLColorCode, as it is called, is compatible with every version of OS X from Leopard to Mountain Lion. You just drop the
.qlgenerator file into
/Library/QuickLook and enjoy your improved Quick Look functionality.
QLColorCode [Google Code]