Elixir syntax highlighting is not available

Once you’ve done the above, delete everything above this line.

Steps to reproduce

Create a code fence block for elixir.

Did you follow the troubleshooting guide? [Y/N] Y

Yes

Expected result

Beautifully highlighted Elixir code.

Actual result

Plaintext Elixir code.

Environment

SYSTEM INFO:
Obsidian version: v1.3.5
Installer version: v1.3.5
Operating system: Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:22 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 22.5.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

As I understand it, Obsidian uses PrismJS for syntax highlighting. PrismJS has supported Elixir as a language since 2015.

1 Like

We use two different libraries one for the editor and one for the reader.

Codemirror 6 also has an Elixir mode that could be used.

1 Like

I’m currently evaluating obsidian and considering the Sync subscription but not having syntax highlighting for elixir in the editor is the only thing holding me back from making the switch.

Sounds like codemirror supports it now, would it be possible to add?

1 Like

I found this plugin which seems to enable Elixir syntax even in live preview

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.