codemirror-addon-indent-guide
Codemirror addon to include indentation guidelines.
How to use
- Install the library from npm
npm i codemirror-addon-indent-guide
- Import the module addon after importing codemirror module
;
- Setup
indentGuide
andindentUnit
options when initializing codemirror editor. Example:
CodeMirror;
- Style it with some css using the classname
cm-indent-guide
. Example: