Skip to content

eldoy/codemirror5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cm5

CodeMirror 5 implementation

Install

npm i https://github.com/eldoy/cm5.git

Usage

Require the editor:

var cm5 = require('cm5')

Include it on the page and run it:

<textarea id="editor"></textarea>
<script>
  window.cm5 =${cm5}
  window.editor = cm5({ el: '#editor', mode: 'js' })

  // Autofocus
  window.editor.focus()
</script>

License

MIT Licensed. Enjoy!

Created by Eldøy Projects

About

CodeMirror 5 implementation

Resources

Stars

Watchers

Forks

Contributors