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.
<script src="js/codemirror.js"></script>
<script src="js/codemirror-mode-phix/dist/phix.js"></script>
or
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