mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Merge pull request #12545 from mogorman/elixir_syntax_highlighting
feat: add Elixir highlighting
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user