1.0.1 • Published 7 years ago

merge-view-codemirror v1.0.1

Weekly downloads
154
License
MIT
Repository
github
Last release
7 years ago

merge-view-codemirror

npm package for http://codemirror.net/demo/merge.html

Installation

npm install merge-view-codemirror 

Dependencies

CodeMirror library is required for this component :

  • npm install codemirror
  • npm install diff-match-patch

Usage

import * as DiffMatchPatch from 'diff-match-patch';
import * as CodeMirror from 'codemirror';
import * as MergeViewCodeMirror from 'merge-view-codemirror';


// ...

MergeViewCodeMirror.init(CodeMirror, DiffMatchPatch);
CodeMirror.MergeView(host.nativeElement, this.config);

Configuration