-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
25 lines (24 loc) · 767 Bytes
/
index.html
File metadata and controls
25 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
</head>
<body>
<link rel="stylesheet" type="text/css" href="./styles/style.css">
<h2>Monaco Editor Sample</h2>
<div id="container" style="width:900px;height:950px;border:1px solid grey"></div>
<script src="../node_modules/monaco-editor/min/vs/loader.js"></script>
<script>
require.config({ paths: { 'vs': '../node_modules/monaco-editor/min/vs' }});
require(['vs/editor/editor.main', './editor'], function() {
var editor = monaco.editor.create(document.getElementById('container'), {
value: [
'{Test <foo> <txt< >text>t>txt>}'
].join('\n'),
language: 'tyml'
});
});
</script>
</body>
</html>