Created
March 4, 2010 20:28
-
-
Save seandenigris/322074 to your computer and use it in GitHub Desktop.
Syntax highlight files in Quicklook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Snippet to syntax-highlight source code files matching a certain pattern in Quicklook | |
# See see http://seandenigris.com/?p=412 for more info for more info | |
# Used with the qlcolorcode plugin | |
# Insert into QLColorCode.qlgenerator/Contents/Resources/colorize.sh | |
# Works for files in languages known to highlight (see qlcolorcode docs), but because of their filename, aren't recognized by Quicklook | |
#The commented lines are already in the file | |
# | |
# debug Handling special cases | |
# case $target in | |
# *.graffle ) | |
# # some omnigraffle files are XML and get passed to us. Ignore them. | |
# exit 1 | |
# ;; | |
*[Rr]akefile | *.rake | *.haml ) | |
lang=ruby | |
;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment