diff --git a/src/lib/components/common/CodeEditor.svelte b/src/lib/components/common/CodeEditor.svelte index 4eef9f59e..f25b3c736 100644 --- a/src/lib/components/common/CodeEditor.svelte +++ b/src/lib/components/common/CodeEditor.svelte @@ -11,6 +11,7 @@ import { onMount } from 'svelte'; + export let boilerplate = ''; export let value = ''; let codeEditor; @@ -38,7 +39,7 @@ // python code editor, highlight python code codeEditor = new EditorView({ state: EditorState.create({ - doc: '', + doc: boilerplate, extensions: extensions }), parent: document.getElementById('code-textarea') diff --git a/src/lib/components/workspace/Tools.svelte b/src/lib/components/workspace/Tools.svelte new file mode 100644 index 000000000..074e03b0b --- /dev/null +++ b/src/lib/components/workspace/Tools.svelte @@ -0,0 +1,34 @@ + + +