You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

codemirror-mode-stata

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-mode-stata

A CodeMirror mode for the Stata language

0.1.1
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

codemirror-mode-stata

A CodeMirror mode for the Stata language

Installation

npm install codemirror codemirror-mode-stata --save

Usage

  • Include codemirror-mode-stata into your project.

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

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

License

MIT - See LICENSE

Keywords

codemirror

FAQs

Package last updated on 02 Dec 2018

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