SourceCodeSyntaxHighlight icon indicating copy to clipboard operation
SourceCodeSyntaxHighlight copied to clipboard

[Feature Request] Hack Highlighting for Elvish Files

Open iandol opened this issue 3 years ago • 2 comments

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 avatar Apr 03 '22 13:04 iandol

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

iandol avatar Apr 03 '22 13:04 iandol

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.

sbarex avatar Apr 03 '22 14:04 sbarex