A CodeMirror mode for the Elixir language
JavaScript Vue HTML
Latest commit 370ac8e Jan 13, 2017 Ian Walter Changing up the site color scheme a bit
Permalink
Failed to load latest commit information.
build
config Changing up the site color scheme a bit Jan 13, 2017
dist Removing yarn.lock until node-sass issue is resolved Dec 20, 2016
src Changing up the site color scheme a bit Jan 13, 2017
static
test
.babelrc Moving site into root directory Nov 8, 2016
.editorconfig
.eslintignore Moving site into root directory Nov 8, 2016
.eslintrc.js Moving site into root directory Nov 8, 2016
.gitignore
.npmignore Moving site into root directory Nov 8, 2016
.rollup.babelrc
LICENSE
README.md
index.html
index.js
package.json
rollup.config.js Fixing .babelrc issue Nov 8, 2016
yarn.lock Changing up the site color scheme a bit Jan 13, 2017

README.md

codemirror-mode-elixir

A CodeMirror mode for the Elixir language

Usage instructions

  1. Install codemirror-mode elixir from NPM: npm install codemirror-mode-elixir

  2. Include codemirror-mode-elixir into your project.

    <!-- You can simply add elixir.js as a script tag: -->
    <script src="js/codemirror.js"></script>
    <script src="js/codemirror-mode-elixir/dist/elixir.js"></script>

    or

    // 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'
  3. Set 'elixir' as the mode when creating the CodeMirror editor.

    CodeMirror.fromTextArea(document.getElementById('code'), { mode: 'elixir' })