sbarex / SourceCodeSyntaxHighlight

Quick Look extension for highlight source code files on macOS 10.15 and later.
GNU General Public License v3.0
3.02k stars 72 forks source link

Ocaml Files dyn #176

Closed cyugao closed 2 years ago

cyugao commented 2 years ago

Hi, the quicklook does not work on Ocaml files .ml.

The output of mdls is

kMDItemContentType     = "dyn.ah62d4rv4ge81u6pzqz3hw"
kMDItemContentTypeTree = (
    "public.item",
    "dyn.ah62d4rv4ge81u6pzqz3hw",
    "public.data"
)

I tried to add UTTypeConformsTo key to the section in Info.plist

<dict>
    <key>UTTypeDescription</key>
    <string>OCaml File</string>
    <key>UTTypeIdentifier</key>
    <string>org.ocaml.ocaml-source</string>
    <key>UTTypeReferenceURL</key>
    <string>http://www.ocaml.org/</string>
    <key>UTTypeTagSpecification</key>
    <dict>
        <key>public.filename-extension</key>
        <array>
            <string>ml</string>
            <string>mll</string>
            <string>mly</string>
        </array>
    </dict>
</dict>

But then the app will crash.

sbarex commented 2 years ago

You cannot edit the Info.plist because break the app signature. Implemented on release 2.1.13.