mirror of
https://github.com/textmate/textmate.git
synced 2026-02-19 02:34:35 -05:00
Read at most 1 KiB or 50 lines of a file and render the attributed string in a bitmap context. The theme is set to Mac Classic to ensure a white background for best look when the previews are used as icons in Finder. The user’s default fixed width font in size 4 is used. With this font size only around 7 lines are shown, so we need to make it smaller, but we probably want to scale down the result to allow fractional line heights. A lot of code is copy/pasted from the QuickLook preview generator.
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>English</string>
|
|
<key>CFBundleExecutable</key>
|
|
<string>${TARGET_NAME}</string>
|
|
<key>CFBundleName</key>
|
|
<string>${TARGET_NAME}</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>com.macromates.${APP_NAME}.${TARGET_NAME}</string>
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
<string>6.0</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>BNDL</string>
|
|
<key>CFBundleSignature</key>
|
|
<string>????</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>1.0.0</string>
|
|
<key>CFBundleVersion</key>
|
|
<string>1.0</string>
|
|
<key>CFPlugInDynamicRegistration</key>
|
|
<false/>
|
|
<key>CFPlugInFactories</key>
|
|
<dict>
|
|
<key>B211F27A-806A-47D3-952C-A8545AA8918E</key>
|
|
<string>TextMateQuickLookGeneratorPlugInFactory</string>
|
|
</dict>
|
|
<key>CFPlugInTypes</key>
|
|
<dict>
|
|
<key>5E2D9680-5022-40FA-B806-43349622E5B9</key>
|
|
<array>
|
|
<string>B211F27A-806A-47D3-952C-A8545AA8918E</string>
|
|
</array>
|
|
</dict>
|
|
<key>CFBundleDocumentTypes</key>
|
|
<array>
|
|
<dict>
|
|
<key>CFBundleTypeRole</key>
|
|
<string>QLGenerator</string>
|
|
<key>LSItemContentTypes</key>
|
|
<array>
|
|
<string>public.source-code</string>
|
|
<string>public.plain-text</string>
|
|
<string>public.text</string>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
<key>QLThumbnailMinimumSize</key>
|
|
<integer>32</integer>
|
|
<key>QLSupportsConcurrentRequests</key>
|
|
<true/>
|
|
<key>QLNeedsToBeRunInMainThread</key>
|
|
<false/>
|
|
</dict>
|
|
</plist>
|