1.0.7 • Published 6 years ago

codemirror-mode-abap v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

NPM Version Demo Github Actions Codecov

Description

Add ABAP syntax highlighting to the CodeMirror editor.

Demo

There's an online demo available on Github Pages:
laudep.github.io/codemirror-mode-abap

Installation

npm install --save codemirror-mode-abap

Usage

  1. Include codemirror-mode-abap in your project.

    import CodeMirror from 'codemirror'
    import { initAbapMode } from 'codemirror-mode-abap/lib/index'
    
    // register Mode and MIME type
    initAbapMode(CodeMirror);

    or

    import CodeMirror from 'codemirror'
    import { abapMode } from 'codemirror-mode-abap/lib/index'
    
    // explicitly register mode
    CodeMirror.defineMode("abap", abapMode);
  2. Set 'abap' as the mode when instantiating the CodeMirror editor.

    CodeMirror.fromTextArea(element, {
        mode: 'abap'
    });

Acknowledgements

License

MIT

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago