QLColorCode
QLColorCode copied to clipboard
Why `public.xml` not handled by QLColorCode?
I use macOS 11.1 and QLColorCode. I found a strange problem that public.xml is handled by /System/Library/QuickLook/Text.qlgenerator, and not handled by QLColorCode.
In /System/Library/QuickLook/Text.qlgenerator/Contents/Info.plist I found this:
<key>LSItemContentTypes</key>
<array>
<string>public.plain-text</string>
<string>public.rtf</string>
<string>com.apple.rtfd</string>
<string>org.oasis-open.opendocument.text</string>
<string>com.apple.property-list</string>
<string>public.xml</string>
<string>public.json</string>
</array>
And I use qlmanage -m plugins | grep to find which generator that these types were bind to. I got this:
com.apple.property-list -> /Users/moon/Library/QuickLook/QLColorCode.qlgenerator (4.0.2)
com.apple.rtfd -> /System/Library/QuickLook/Text.qlgenerator (928.1)
org.oasis-open.opendocument.text -> /System/Library/QuickLook/Text.qlgenerator (928.1)
public.json -> /System/Library/QuickLook/Text.qlgenerator (928.1)
public.plain-text -> /System/Library/QuickLook/Text.qlgenerator (928.1)
public.rtf -> /System/Library/QuickLook/Text.qlgenerator (928.1)
public.xml -> /System/Library/QuickLook/Text.qlgenerator (928.1)
From this, we can see that QLColorode already bind to com.apple.property-list, but failed bind to public.xml.
Can somebody know why? And is there a way to make public.xml bind to QLColorCode?
Can you look at #67, please? I think it's the same problem…
Mine is bound - public.xml -> /Users/mark/Library/QuickLook/QLColorCode.qlgenerator (4.1.0)
Yet when I quick look xml it doesn't work. XSD does work.
I'm not a ~/Library/QuickLook/QLColorCode.qlgenerator/Contents/Info.plist whisperer though I don't know how it decides based on all this junk I have in mine. Its a bit of a irritation but thankfully I don't quicklook xml that much.