How do I display invalid rows using 'EditorWidget'

test

As shown in the figure above, I used the EditorWidget to generate an editor. How can I customize an empty line to display an invalid line with a slash like deff? Are there any appropriate attributes to modify it?

@Songlione, you should be able to use the MonacoEditor.deltaDecorations method to add custom decorations to your editor widget.

Thank you very much for your volatilization, but there is still a small problem, how to skip the number on the left of the invalid line? How to add invalid row style when the left sequence number to skip?

@msujew Thank you very much for your volatilization, but there is still a small problem, how to skip the number on the left of the invalid line? How to add invalid row style when the left sequence number to skip?

@Songlione No idea, the behavior you’re seeing comes from the diff editor, but I’m not sure how to invoke the monaco API to render this kind of area on demand.

@msujew * Thank you very much. Let me look at the source code again to find the right way