sbarex / SourceCodeSyntaxHighlight

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

[Feature Request] Hack Highlighting for Elvish Files #160

Open iandol opened 2 years ago

iandol commented 2 years ago

Hi, I use an alternative shell language called elvish https://elv.sh, which is not supported by the library you use. Here are the UTIs:

▶︎ mdls -name kMDItemContentType -name kMDItemContentTypeTree /Users/ian/.dotfiles/rc.elv
kMDItemContentType     = "dyn.ah62d4rv4ge80n5d0"
kMDItemContentTypeTree = (
    "public.data",
    "public.item",
    "dyn.ah62d4rv4ge80n5d0"
)

I wanted to quicklook these files anyway, adding this UTI or extension to an existing syntax highlighter. I'm not quite sure if this is possible or the right way to do it (I tried adding .elv to the "Settings for plain files" section to see if I could get it to work to no avail...

iandol commented 2 years ago

Oh, and the UI for your tool is really beautiful, so well designed!!!!

sbarex commented 2 years ago

You cannot use the plain files settings to add the support for a new file format. These section is only for handle files without an extension.

The Highlight render engine do not support elv syntax. If the syntax is the same as the other shell languages (or as another supported language) I can add the support of this format.