diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte index 0db994c..39afe01 100644 --- a/web/pw-server/src/routes/index.svelte +++ b/web/pw-server/src/routes/index.svelte @@ -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() {