SourceCodeSyntaxHighlight
SourceCodeSyntaxHighlight copied to clipboard
Elixir .ex and .exs are not highlighted.
I verified that Highlight supports the Elixir language
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
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?
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
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?
Implemented on release 2.1.26.
Hi @sbarex , thank you very much !! It works very well.