-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
42 lines (41 loc) · 1.82 KB
/
index.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<base target="_blank">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<link rel="stylesheet" href="vendor/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="vendor/codemirror/addon/dialog/dialog.css">
<link rel="stylesheet" href="dist/main.css">
<link rel="stylesheet" href="dist/stylekit.css">
<script src="vendor/codemirror/lib/codemirror.js"></script>
<!-- Required for gfm mode -->
<script src="vendor/codemirror/addon/mode/overlay.js"></script>
<script src="vendor/codemirror/addon/mode/simple.js"></script>
<script src="vendor/codemirror/addon/mode/loadmode.js"></script>
<script src="vendor/codemirror/mode/meta.js"></script>
<!-- Vim key bindings -->
<script src="vendor/codemirror/keymap/vim.js"></script>
<!-- Required to display the Vim command line -->
<script src="vendor/codemirror/addon/dialog/dialog.js"></script>
<script src="vendor/codemirror/addon/search/searchcursor.js"></script>
<script src="dist/lib/component-relay.js"></script>
<!-- Required for styling selected text -->
<script src="vendor/codemirror/addon/selection/mark-selection.js"></script>
<script>
CodeMirror.modeURL = "vendor/codemirror/mode/%N/%N.js";
</script>
</head>
<body class="sn-component" onload="setKeyMap('vim')">
<div id="wrapper">
<textarea id="code" name="code"></textarea>
<div>
<div id="select-wrapper">
<span id="language-label">Language:</span>
<select id="select" onchange="onLanguageSelect(event)"></select>
<span id="default-label" onclick="setDefaultLanguage(event)">Set as Default</span>
<span id="default-message" class="shown"></span>
</div>
<script src="dist/main.js"></script>
</body>
</html>