codemirror-inject
Inject CodeMirror into a page including base and theme CSS
Last updated 6 years ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install codemirror-inject 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (6 years ago)

1 Versions

  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |