SourceCodeSyntaxHighlight icon indicating copy to clipboard operation
SourceCodeSyntaxHighlight copied to clipboard

Elixir .ex and .exs are not highlighted.

Open cocoaway opened this issue 7 months ago • 3 comments

I verified that Highlight supports the Elixir language

Image

among those supported with .ex and .exs extensions.

In macOS Sequoia 15.4.1 the files are opened but there is no syntax highlight.

LM

Image

cocoaway avatar May 06 '25 06:05 cocoaway

I have not implemented all languages ​​supported by Highlight. What use is an ex file on your system? What UTI has an .ex and .exs file on your system?

sbarex avatar May 06 '25 06:05 sbarex

Hello,

.ex and .exs are filename extensions that identify files that contain Elixir source code.

To be clear, .exs is the equivalent of .py in python or .js in nodejs.

.exs is a file that contains Elixir code but is executed by Elixir immediately as a script, .ex is an Elixir file that is compilable and is transformed into bytecode .beam .

Using mdls :

mdls -name kMDItemContentType -name kMDItemContentTypeTree foo.ex

kMDItemContentType     = "com.bps.elixir-source"
kMDItemContentTypeTree = (
    "com.bps.elixir-source",
    "public.source-code",
    "public.plain-text",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
)

Do you think it is possible to include Elixir among the languages you support?

Thx, LM

cocoaway avatar May 06 '25 07:05 cocoaway

I will implement it in the next version (I think I will release it soon). I'm afraid that the .exs extension is associated with macos files though. Can you also tell me the UTI of the .exs file on your system?

sbarex avatar May 09 '25 07:05 sbarex

Implemented on release 2.1.26.

sbarex avatar Jul 01 '25 15:07 sbarex

Hi @sbarex , thank you very much !! It works very well.

cocoaway avatar Jul 03 '25 14:07 cocoaway