'How to set Gutter marker for all lines in react-codemirror2?
I'm using react-codemirror2 to implement a code editor. I want to set the gutter marker for all the lines.
We can use setGutterMarker
method to set gutterMaker for one line.
editor.setGutterMarker(1, 'marker', document.createTextNode("ø"))
But I want to know how to set it for all the lines. (even if the user adds new lines, it should set the gutter marker for that line)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|