CodeMirror 6 as a custom element (web component)
npm install code-mirror-custom-elementCodeMirror 6 as a custom element (web component)
sh
npm i code-mirror-custom-element
`$3
`js
import 'code-mirror-custom-element'
``html
`$3
Download dist/code-mirror-custom-element.js
In your html file, add:
`html
``And you're done.
Supported languages are "javascript", "html" and "css". Please create an issue in github to add support for the language you want.