-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background color does not seems to be working on monaco.editor.defineTheme rules section. #586
Comments
same for me, just added some code
at line : { token: 'green', background: 'FF0000', foreground: '00FF00', fontStyle: 'italic'}, |
Neither 'rules' nor colors definition works for me. Had to change color using CSS. |
+1 Also, can we not add the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
i would love to see a solution to this. for my use case, i am making the background of the editor transparent since i am displaying the code on top of video. because the video changes colors all the time i need to make the background of the text a solid color. since |
how did you add css ? do you rely on mtk class numbers ? |
I don't think relying on mtk class is safe. It seems to be somewhat auto generated based on our config. (e.g. changing the foreground color results in another class) |
Btw can someone point me the direction to fix this? I'd be happy to have a PR :D |
+1 |
is it supposed to work at all or it was some mistake to expose it? |
Still not working |
Closing due to missing reproducible example. If this bug still applies, please create a new issue. Make sure to select the form for bugs and include a minimal reproducible example. Thanks! |
Background color does not seems to be working on monaco.editor.defineTheme rules array section. I am being able to set the foreground color and fontStyle, but for some reason the background color does not work. Any insight would be greatly appreciated.
monaco-editor version: 0.10.0
Browser: Chrome
OS: Windows
The text was updated successfully, but these errors were encountered: