|
@@ -0,0 +1,29 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+ <head>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
|
+ </head>
|
|
|
+ <body style="height: 100%">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ position: absolute;
|
|
|
+ left: 10px;
|
|
|
+ top: 10px;
|
|
|
+ width: 400px;
|
|
|
+ height: 200px;
|
|
|
+ border: 1px solid silver;
|
|
|
+ "
|
|
|
+ id="editor"
|
|
|
+ ></div>
|
|
|
+
|
|
|
+ <script src="dev-setup.js"></script>
|
|
|
+ <script>
|
|
|
+ loadEditor(function () {
|
|
|
+ monaco.editor.create(document.getElementById('editor'), {
|
|
|
+ value: `function hello()\n{\treturn 5;\n}`,
|
|
|
+ language: 'javascript'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+ </body>
|
|
|
+</html>
|