add support for elixir code syntax highlighting

This commit is contained in:
Matthew O'Gorman
2025-04-06 23:42:53 -04:00
parent 41aca84913
commit 8a81f5f188
3 changed files with 30 additions and 0 deletions

View File

@@ -98,6 +98,16 @@
}
})
);
languages.push(
LanguageDescription.of({
name: 'Elixir',
extensions: ['ex', 'exs'],
load() {
return import('codemirror-lang-elixir').then((m) => m.elixir());
}
})
);
const getLang = async () => {
const language = languages.find((l) => l.alias.includes(lang));
return await language?.load();