A Pen by Yuki Takemoto on CodePen.
Created
December 28, 2019 21:20
-
-
Save yusufusta/87134c3001d0d7ae7d777b6ea6d221f9 to your computer and use it in GitHub Desktop.
Simple CodeMirror 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
<textarea id='editor'>var editor = CodeMirror.fromTextArea(document.getElementById('editor'), { | |
mode: "javascript", | |
lineNumbers: true, | |
}); | |
editor.save()</textarea> |
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
var editor = CodeMirror.fromTextArea(document.getElementById('editor'), { | |
mode: "javascript", | |
lineNumbers: true, | |
}); | |
editor.save() |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/codemirror.js"></script> | |
<script src="https://codemirror.net/mode/javascript/javascript.js"></script> |
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
<link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/codemirror.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment