Syntax Highlighting in Mac OS X Quick Look

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 or /Library/QuickLook and enjoy your improved Quick Look functionality.

QLColorCode [Google Code]

  • http://joemajoris.blogspot.com Joe

    It seems that Apple’s dominance will be more in the realm of self-adhesive nail into gadgets as well as other smartphone products. But one day there will be a new competitor who really can compete in a healthy manner, we wait