I notice that Elixir snippets are not highlighted. It's supported by the Highlight.js project but using 'elixir' directly after backticks does not do anything:
module Foo do
def test(arg) do
IO.inspect(arg)
end
end
I notice that Elixir snippets are not highlighted. It's supported by the Highlight.js project but using 'elixir' directly after backticks does not do anything:
module Foo do
def test(arg) do
IO.inspect(arg)
end
end
Edit: this is merely making the syntax highlighting switch to a default mode. Which is an improvement, but still not using the correct syntax highlighting.
Ok I see the issue is that it needs to be in the format: lang-elixir
module Foo do
def test(arg) do
IO.inspect(arg)
end
end
I was going off this line in What is syntax highlighting and how does it work?:
If you are using code fences (three back-ticks above and below the code block, put the language name right after the opening back-ticks, the lang- prefix is not needed:
But I guess there is a differentiation if it's not an officially supported language from this list: What is syntax highlighting and how does it work?
If anyone knows how to get it officially supported, that would be great.
Sorry for the confusion.
elixir
as the syntax hint means "use the language defined for the tag elixir
" while lang-elixir
is "use the syntax highlighting for the elixir language". I guess that means that the elixir tag doesn't have an associated style.
lang-elixir
option available for us to set for that tag. The official list does not indicate that Elixir formatting is even supported. @VLAZ