Skip to content

Instantly share code, notes, and snippets.

@keeyip
Last active December 21, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keeyip/6328793 to your computer and use it in GitHub Desktop.
Save keeyip/6328793 to your computer and use it in GitHub Desktop.
Sibilant Editor
<!doctype html>
<body>
<style>
.CodeMirror {
font-size: 16px;
}
</style>
<link rel='stylesheet' href='https://rawgithub.com/marijnh/CodeMirror/3.16.0/lib/codemirror.css'/>
<script src="https://rawgithub.com/marijnh/CodeMirror/3.16.0/lib/codemirror.js"></script>
<script src='https://rawgithub.com/marijnh/CodeMirror/3.16.0/mode/javascript/javascript.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src='main.js'></script>
</body>
$(function() {
//========================================================
var SAMPLE = {
sample1: function sample1() {
function merge() {
}
function mergeSort() {
}
}
}
//========================================================
var cm = CodeMirror($('body')[0], {
value: SAMPLE['sample1'].toString(),
mode: "javascript",
cursorBlinkRate: 0,
indentWithTabs: true,
tabSize: 4
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment