All Projects → ianwalter → codemirror-mode-elixir

ianwalter / codemirror-mode-elixir

Licence: MIT license
A CodeMirror mode for the Elixir language

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to codemirror-mode-elixir

codemirror-promql
PromQL support for the CodeMirror code editor
Stars: ✭ 35 (+118.75%)
Mutual labels:  codemirror-mode
TW5-codemirror-plus
An attempt to make a better writing experience for TW using codemirror.
Stars: ✭ 26 (+62.5%)
Mutual labels:  codemirror-mode
CodeMirror-Mode-TiddlyWiki5
Adds Syntax Highlighting & Hint for TiddlyWiki5 tiddlers (text/vnd.tiddlywiki) to the CodeMirror.
Stars: ✭ 19 (+18.75%)
Mutual labels:  codemirror-mode
TW5-CodeMirror-Enhanced
An enhanced for CodeMirror framework in TiddlyWiki, including TW5 highlight, WikiLink auto-completion, expandable hint, snippets, etc.
Stars: ✭ 24 (+50%)
Mutual labels:  codemirror-mode

codemirror-mode-elixir

A CodeMirror mode for the Elixir language

Installation

npm install codemirror codemirror-mode-elixir --save

Usage

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

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

License

MIT - See LICENSE

 

Created by Ian Walter

 

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].