Created
May 12, 2012 15:38
-
-
Save jameswilson/2667198 to your computer and use it in GitHub Desktop.
Patch for Drupal QuickLook Syntax Highlighting with QLColorCode.qlgenerator
This file contains hidden or 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
diff --git a/Contents/Info.plist b/Contents/Info.plist | |
index 30088e8..6516736 100644 | |
--- a/Contents/Info.plist | |
+++ b/Contents/Info.plist | |
@@ -170,6 +170,8 @@ | |
<key>public.filename-extension</key> | |
<array> | |
<string>ini</string> | |
+ <string>info</string> | |
+ <string>diz</string> | |
</array> | |
<key>public.mime-type</key> | |
<string>text/x-ini</string> | |
@@ -621,6 +623,28 @@ | |
</array> | |
</dict> | |
</dict> | |
+ <dict> | |
+ <key>UTTypeConformsTo</key> | |
+ <array> | |
+ <string>public.source-code</string> | |
+ </array> | |
+ <key>UTTypeDescription</key> | |
+ <string>Drupal Source Code</string> | |
+ <key>UTTypeIdentifier</key> | |
+ <string>org.n8gray.drupal</string> | |
+ <key>UTTypeTagSpecification</key> | |
+ <dict> | |
+ <key>public.filename-extension</key> | |
+ <array> | |
+ <string>install</string> | |
+ <string>module</string> | |
+ <string>theme</string> | |
+ <string>profile</string> | |
+ <string>inc</string> | |
+ <string>make</string> | |
+ </array> | |
+ </dict> | |
+ </dict> | |
</array> | |
</dict> | |
</plist> | |
diff --git a/Contents/Resources/etc/highlight/filetypes.conf b/Contents/Resources/etc/highlight/filetypes.conf | |
index 3288caa..de7dad9 100644 | |
--- a/Contents/Resources/etc/highlight/filetypes.conf | |
+++ b/Contents/Resources/etc/highlight/filetypes.conf | |
@@ -36,7 +36,8 @@ $ext(mib)=smi | |
$ext(ml)=mli ocaml | |
$ext(mod3)=mod m3 i3 ig mg | |
$ext(oberon)=ooc | |
-$ext(php)=php3 php4 php5 php6 | |
+$ext(php)=php3 php4 php5 php6 module install profile theme | |
+$ext(ini)=info make | |
$ext(pike)=pmod | |
$ext(pl1)=ff fp fpp rpp sf sp spb spp sps wp wf wpp wps wpb bdy spe | |
$ext(pl)=perl cgi pm plx plex | |
diff --git a/Contents/Resources/override/config/filetypes.conf b/Contents/Resources/override/config/filetypes.conf | |
index 57f784f..33361d2 100644 | |
--- a/Contents/Resources/override/config/filetypes.conf | |
+++ b/Contents/Resources/override/config/filetypes.conf | |
@@ -30,6 +30,9 @@ $ext(euphoria)=ex exw exu ew eu | |
$ext(aspect)=was wud | |
$ext(pl1)=ff fp fpp rpp sf sp spb spp sps wp wf wpp wps wpb bdy spe | |
$ext(pike)=pmod | |
+$ext(php)=php3 php4 php5 php6 module install profile theme inc | |
+$ext(ini)=info make | |
+$ext(txt)=diz nfo | |
$ext(mod3)=mod m3 i3 ig mg | |
$ext(rexx)=rex rx the | |
$ext(ada)=adb ads a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions:
Also see my SASS, LESS, Compass syntax highlight patch.