is colors in injected language syntax highlighting configurable?
Answered
Has anyone noticed that with a dark color background , injected language syntax highlighting (e.g., javascript in HTML, JSNI in gwt java code) will not have the same background color as the current file, but have a grey/white-ish background, causing text to be unreadable. I tried editing the config/colors/*.xml files, but to no avail. And there doesnt seem to be an option in settings to change the background color of injected language highlighting.
Perhaps i m just missing something? see the screenshot below, from line 88.
Please sign in to leave a comment.
Hello Chii,
Settings | Editor | Colors and Fonts | General | Injected language fragment
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Wow, never noticed that! THanks!
This is no longer the case with the current version of WebStorm. Where can I edit code injection background colors?
The color can be changed in `Settings | Editor | Color Scheme | General | Injected language fragment`
The issue was for me that the inspections in Preferences > Editor > Inspections > "Sql dialect detection" was checked and it caused a warning background to appear, overriding any changes from the background color with injected language fragment. So in case you try to change the background color and that still doesn't work. Check your inspection settings, either register a dialect with it or turn off that inspection.