今天要推荐的是个Syntax Highlight的Plugin, 免费且开源...名叫qlcolorcode, 详见Google Code:
http://code.google.com/p/qlcolorcode/downloads/list
效果如下:
很棒的一点是有些它默认不支持的格式也可以通过修改 显示包内容 -> Contents -> Info.plist来增加...
例如加个nfo的支持:
改完拖回到Quicklook Plugin的目录:<dict><key>UTTypeConformsTo</key><array><string>public.source-code</string></array><key>UTTypeDescription</key><string>QLColorCode Test File</string><key>UTTypeIdentifier</key><string>org.n8gray.bogusextension</string><key>UTTypeTagSpecification</key><dict><key>public.filename-extension</key><array><string>nfo</string><string>bogus_extension</string></array></dict></dict>
/Library/QuickLook然后在Terminal里重启下索引:
qlmanage -r就OK了
No comments:
Post a Comment