How to insert DOM below a specific line and continue document below that again

Besides Gutter plugin for GitHub-like code hiding I need one more feature that’s similar to GitHub view - to render my own DOM below a specific line of the rendered document in CM6:

And the document should continue below my own DOM including the line numbers as usual.

I want that to nicely render linting errors including some interactive elements that go with that.

I’m not sure how to start, is there an existing solution I could use to kick-off my implementation? What is the general approach I should use?

Thank you very much.

Block widgets are the feature you need here.

1 Like