Created
December 17, 2011 09:22
-
-
Save lyhcode/1489775 to your computer and use it in GitHub Desktop.
jQuery CodeMirror Plugin usage sample
This file contains hidden or 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() { | |
| $('.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