<p>
Make sure you load <a href="https://codemirror.net/" target="_blank">CodeMirror</a> first.
</p>
<div id="jotted-demo-codemirror"></div>
<link rel="stylesheet" href="../bower_components/codemirror/lib/codemirror.css">
<script src="../bower_components/codemirror/lib/codemirror.js"></script>
<script src="../bower_components/codemirror/mode/javascript/javascript.js"></script>
<script src="../bower_components/codemirror/mode/css/css.js"></script>
<script src="../bower_components/codemirror/mode/xml/xml.js"></script>
<script src="../bower_components/codemirror/mode/htmlmixed/htmlmixed.js"></script>
<link href="../jotted.css" rel="stylesheet">
<script src="../jotted.js"></script>
<script>
new Jotted(document.querySelector('#jotted-demo-codemirror'), {
files: [
{
type: 'html',
content: '<html>\n<body>\n<h1>Using CodeMirror</h1>\n</body>\n</html>'
}
],
pane: 'html',
plugins: [
'codemirror'
]
});
</script>