1.0.4 • Published 5 years ago

codemirror-mode-chapel v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

codemirror-mode-chapel

A CodeMirror mode for the Chapel language

npm (scoped)

Installation

npm install codemirror codemirror-mode-chapel --save

Usage

  1. Include codemirror-mode-chapel into your project.

    <!-- You can simply add codemirror-mode-chapel/index.js as a script tag: -->
    <script src="js/codemirror.js"></script>
    <script src="js/codemirror-mode-chapel/index.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 registerChapelMode from 'codemirror-mode-chapel'
  2. Set 'text/chapel' as the mode when creating the CodeMirror editor.

    CodeMirror.fromTextArea(document.getElementById('code'), { mode: 'text/chapel' })

License

ISC

 

Created by Krishna Kumar Dey

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago