I have a monaco-react editor. How can i programatically bring a line in visibility and change the line's background color? #576
Unanswered
mushahidkhan835
asked this question in
Q&A
Replies: 1 comment
-
|
@mushahidkhan835 To bring a range in center you can use methods on editor like revealRangeInCenter Something like this
Take a look at these options, they might help you https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.IEditor.html To change the line's background I think you have to create a customTheme using defineTheme and setTheme or you can apply line decorations(it'll be more easy then creating a custom theme). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a monaco-react editor. How can i programatically bring a line in visibility and change the line's background color?
Beta Was this translation helpful? Give feedback.
All reactions