Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '.rhtml in Quick Look with TextMate' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
.rhtml in Quick Look with TextMate
Authored by: reenhanced on Nov 09, '07 08:45:26AM
I've added Quick Look support for .rhtml files in Textmate by adding the following to the end of Info.plist, immediately before

</dict>
</plist>
Add the following:

  <key>UTExportedTypeDeclarations</key>
  <array>
    <dict>
      <key>UTTypeConformsTo</key>
      <array>
        <string>public.text</string>
        <string>public.plain-text</string>
      </array>
      <key>UTTypeDescription</key>
      <string>HTML with Embedded Ruby</string>
      <key>UTTypeIdentifier</key>
      <string>com.macromates.textmate</string>
      <key>UTTypeTagSpecification</key>
      <dict>
        <key>com.apple.ostype</key>
        <string>TEXT</string>
        <key>public.filename-extension</key>
        <array>
          <string>rhtml</string>
        </array>
      </dict>
    </dict>
  </array>
Then do,
 
$ touch /Application/TextMate.app
And you'll have Quick Look support for all your .rhtml files.

Enjoy!

Nick Hance
Reenhanced, LLC
www.reenhanced.com

[ Reply to This | # ]