Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@exercism/codemirror-mode-phix

Package Overview
Dependencies
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exercism/codemirror-mode-phix

A CodeMirror mode for the Phix language

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
6
Weekly downloads
 
Created
Source

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

 

Keywords

codemirror

FAQs

Package last updated on 07 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts