codemirror-inject

0.1.0 • Public • Published

codemirror-inject

Travis Build Status

Inject CodeMirror into a page including base and theme CSS

Usage

var codemirror = require('codemirror-inject');
 
var el = document.getElementById('editor');
 
// loads the base styling for codemirror and mounts an instance in the given el
var editor = codemirror(el, {
  mode: 'javascript', // will load the `javascript` syntax mode
  theme: 'monokai' // will load the `monokai` theme
});

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i codemirror-inject

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • monteslu