Last active
December 21, 2015 15:49
-
-
Save keeyip/6328793 to your computer and use it in GitHub Desktop.
Sibilant Editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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