A CodeMirror mode for the Elixir language
npm install codemirror-mode-elixir``console`
npm install codemirror codemirror-mode-elixir --save
1. Include codemirror-mode-elixir into your project.
`html`
or
`js`
// If you're using frontend build tools like Webpack and Babel,
// you can simply import the module and register the mode:
import CodeMirror from 'codemirror'
import registerElixirMode from 'codemirror-mode-elixir'
1. Set 'elixir' as the mode when creating the CodeMirror editor.
`js``
CodeMirror.fromTextArea(document.getElementById('code'), { mode: 'elixir' })