0.1.0 • Published 9 years ago

codemirror-inject v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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