aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes/index.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-server/src/routes/index.svelte')
-rw-r--r--web/pw-server/src/routes/index.svelte6
1 files changed, 6 insertions, 0 deletions
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() {