Hello, I’m looking into a way to render the comment content inside the code whenever a comment is closed. I figured that I can use
replacedWith to render it. But I’m not sure how can I know the range of the comment with CodeMirror API ?
From what I can tell from the manual, there is
cm.getLineTokens to scan and make a map of all comments. And rescan again on change event.
If there is a better to do this, I would love to know. Thank you very much.