0.1.0 • Published 1 year ago

@exercism/codemirror-mode-phix v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

codemirror-mode-phix

A CodeMirror mode for the Phix language

Installation

npm install codemirror codemirror-mode-phix --save

Usage

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

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

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

License

MIT - See LICENSE

 

Created by Ian Walter and hastily patched from elixir to phix by Pete Lomax

 

0.1.0

1 year ago