Skip to content

Commit d1554f4

Browse files
authored
Update code_editor.html
1 parent e5803a7 commit d1554f4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

code_editor.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
<body onload="brython()">
1212
<div id="editor">
1313
<textarea id="python-code" placeholder="Write your Python code here..."></textarea>
14-
<button id="run-button">
15-
<span class="run-icon">&#9658;</span> Run Code
16-
</button>
14+
<span><button id="run-button">
15+
<span class="run-icon">&#9658;</span> Run Code
16+
</button></span>
17+
<button class="button" onclick="saveText()">Save</button>
18+
<button class="button" onclick="importText()">Import</button>
1719
</div>
1820

1921
<script type="text/python">
@@ -26,5 +28,6 @@
2628
print("Error: " + str(e))
2729
document["run-button"].bind("click", run_python)
2830
</script>
31+
<script src="main.js"></script>
2932
</body>
3033
</html>

0 commit comments

Comments
 (0)