@exercism/codemirror-mode-phix
v0.1.0
Published
A CodeMirror mode for the Phix language
Downloads
3
Readme
codemirror-mode-phix
A CodeMirror mode for the Phix language
Installation
npm install codemirror codemirror-mode-phix --save
Usage
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'
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