1.0.7 • Published 5 years ago

codemirror-mode-abap v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago