Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianwalter/codemirror-mode-elixir
A CodeMirror mode for the Elixir language
https://github.com/ianwalter/codemirror-mode-elixir
codemirror-mode elixir
Last synced: 25 days ago
JSON representation
A CodeMirror mode for the Elixir language
- Host: GitHub
- URL: https://github.com/ianwalter/codemirror-mode-elixir
- Owner: ianwalter
- License: mit
- Created: 2016-11-04T15:46:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-02T03:15:45.000Z (almost 6 years ago)
- Last Synced: 2024-10-04T10:42:14.467Z (about 1 month ago)
- Topics: codemirror-mode, elixir
- Language: JavaScript
- Homepage: https://codemirror-mode-elixir.optick.io
- Size: 547 KB
- Stars: 22
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# codemirror-mode-elixir
> A CodeMirror mode for the Elixir language## Installation
```console
npm install codemirror codemirror-mode-elixir --save
```## Usage
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' })
```## License
MIT - See [LICENSE][licenseUrl]
Created by [Ian Walter](https://iankwalter.com)
[licenseUrl]: https://github.com/ianwalter/codemirror-mode-elixir/blob/master/LICENSE