Skip to content

Instantly share code, notes, and snippets.

@LeetCodes
Forked from theredstapler/codemirror part 1
Created November 5, 2018 12:07
Show Gist options
  • Select an option

  • Save LeetCodes/59d09b9af849cbd36aec36fb8791da8c to your computer and use it in GitHub Desktop.

Select an option

Save LeetCodes/59d09b9af849cbd36aec36fb8791da8c to your computer and use it in GitHub Desktop.
<!doctype html>
<head>
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="mode/javascript/javascript.js"></script>
<style>
body {
background-color: #eee;
}
</style>
</head>
<body>
<div id="codeeditor"></div>
<script>
var editor = CodeMirror(document.getElementById("codeeditor"));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment