configure python mode and theme for ace editor
This commit is contained in:
parent
0a102a9371
commit
cd9689c6ef
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,12 @@
|
|||
onMount(async () => {
|
||||
const ace = await import("ace-builds");
|
||||
editor = ace.edit("editor");
|
||||
|
||||
const python_mode = await import("ace-builds/src-noconflict/mode-python");
|
||||
editor.getSession().setMode(new python_mode.Mode());
|
||||
|
||||
const gh_theme = await import ("ace-builds/src-noconflict/theme-github");
|
||||
editor.setTheme(gh_theme);
|
||||
});
|
||||
|
||||
async function submitCode() {
|
||||
|
|
Loading…
Reference in a new issue