Skip to content

Instantly share code, notes, and snippets.

@lyhcode
Created December 17, 2011 09:22
Show Gist options
  • Select an option

  • Save lyhcode/1489775 to your computer and use it in GitHub Desktop.

Select an option

Save lyhcode/1489775 to your computer and use it in GitHub Desktop.
jQuery CodeMirror Plugin usage sample
$(function() {
$('.highlight').codemirror({
mode: 'javascript',
runmode: true
});
var editor1 = $('.editor').codemirror({
mode: 'javascript',
lineNumbers: true
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment