Quicklook: Syntax highlighter for Drupal files (module, profile, theme, install, inc)
Updated version now on github! QLColorCode-extra
Note: added support for drupal make files!
For some time now I've been using the QLColorCode plugin for Quicklook, but it wasn't highlighting all drupal filetypes, so today I did some hacking and enabled highlighting for the following previously unsupported filetypes:
- .make (requested by Decipher)
Just drop my modified version of the plugin into /Library/QuickLook or ~/Library/QuickLook and bask in the glow of the beautiful syntax highlighting in all of the supported filetypes.. including all your Drupal files!
If you have Xcode installed
Xcode 3.2 (the version shipped with Snow Leopard) includes a Quick Look plugin that highlights source code. It only highlights a few languages, so you probably still want to use QLColorCode. However, the Quick Look server tends to pick the Xcode plugin over QLCC. This means that for any source code file aside from .c, .m, and the other languages that Xcode understands you'll see a plain text preview with no highlighting. To get QLCC to work properly you'll need to disable the Xcode plugin.
The XCode plugin is installed at:
The simplest way to disable it is to open Terminal.app and run these commands:
sudo mv $f $f.disabled
This will rename the plugin to SourceCode.qlgenerator.disabled, which will prevent it from being loaded by quicklookd.