Why are some characters get a pale highlight in WebStorm? - webstorm

I noticed that sometimes characters in WebStorm get highlighted with a pale color, just as if there is something wrong with that character. But when hovering over that character, there is no hint or anything, the right-click menu does not show any special functionality, and there is no mentioning at the Inspection-bar at the right.
Here is an example (the ':' after 'clear') from an AngularJS source file:
What is WebStorm trying to tell me?

This light-green background indicates language injection (https://www.jetbrains.com/help/webstorm/2017.1/using-language-injections.html) - WebStorm auto-injects CSS in style attribute value. If you don't like its background color, you can change it in Preferences | Editor | Colors & Fonts | General (Preferences | Editor | Color Scheme | General since 2017.2), Code / Injected language fragment settings, Background .

Related

Switch off WebStorm HTML Parent Tag Tree Colors

How do I turn off the automatic highlighting of parent HTML tags in WebStorm? It's like it's Christmas! I'm using v2019.2.
It's terribly distracting. Take a look for yourself:
In Settings | Editor | General | Appearance, turn Enable XML/HTML tag tree highlighting off

How to remove current line highlighting in WebStorm 11

How do I get rid of highlight of current line?
The color looks exactly like highlight text color.
I found something about "caret" but it didn't help.
OK so the correct thing is called "Caret Row"
Settings -> Editor -> Color & Fonts -> General -> Editor -> Caret row
As the previous answers mentioned, just follow this image and unselect the background for the Caret row from the settings menu.

How to change font or color setting of code disabled by conditional compilation?

Let's say I have a code like this:
#define ABC
#ifdef ABC
int foo = 1;
#else
int bar = 2;
#endif
I want to modify displaying of the text inside else part of conditional compilation.
I'm using dark scheme in VS2012. Current setting will drop all colors except constants, comments and keywords which will get bit darker. I would like to change it to either drop all colors completely or change everything to different color.
I would really love to have the part which is not complied crossed (or at least italic) but that does not seem to be possible in VS editor at all.
Please excuse me for bringing up a 2 year old topic, but this could better help the community in finding fast answers.
Sigve had provided correct answer but the following is in addition to what he had said.
If you are still not able to change the color of the Display item (Excluded code in this case), go to
Tools -> Options -> Text Editor -> C/C++ (e.g.) -> View. Choose 'True' (default is false) to disable inactive code opacity. When you go back to the font and colors, and change the color for 'Excluded Code', the color will be updated.
From https://msdn.microsoft.com/en-us/library/ms165337(v=vs.110).aspx
Select Options from the Tools menu, and in the Environment folder, select Fonts and Colors.
The Fonts and Colors, Environment, Options Dialog Box opens.
In Show settings for, select Text Editor.
Modify the Font and Size options to change the font face and size for all text elements in all editors.
Select the appropriate item in Display items, and then modify the Item foreground and Item background options.
The item you want in Display items is excluded code.

Eclipse dark theme highlight issue

I just switched from geany to eclipse and I have a little problem
How can I change that highlight color which is VERY annoying
As you can see, whenever I highlight anything and click somewhere else, it changes like this. How can fix this little bug?
Open Window>Preferences>General>Editors>Text Editors>Annotations
Modify the color for "PHP elements 'read' occurrences" and "PHP elements 'write' occurrences". Obviously I'm using eclipse PHP but you should see similar options in the annotations list for non-PHP eclipse.
Here's what worked for me:
Open Windows -> Preferences -> General -> Editors -> Text Editors ->
Annotations
Select "Occurrences (PyDev)." The "Text as" drop down box on the right should read "Highlighted," and the color is very light.
Click the color button and change it to something easier on the eyes.
I found the best thing to do is to go into GWindows -> Preferences -> General -> Editors -> Text Editors -> Annotations and change everything from Highlighted to Underlined and choose the underline color to suit.
If you are using Python in eclipse (using PyDev) than the above solution won't help.
Than you have to go to
"Open Windows>Preferences>General>Editors>Text Editors> Annotations"
and change the color of Breakpoints(PyDev).
Once you do that the color of all which are matching your current selection will be in the color you chose and not the annoying yellowish highlight color.
General->Editors->Text Editors->Annotations preference
section. Look for C/C++ Occurrences and C/C++ Write Occurrences.
I had to spend an inordinate amount of time searching for an answer to this question. Here is a picture of the Preferences showing which selection is for changing the background color of text you have selected with your mouse in the editor. This is totally different from the Occurrences that people keep pointing out.
If you're using PyDev, use the following:
Open Window>Preferences>General>Editors>Text Editors>Annotations
in the list of Annotation types there is the "Occurrences (PyDev)" Option, which is the one you'll want to change.
I found a blue highlight for dark mode works well in PyDev.
For me, this is what did it (seems it's different for everyone):
Open Windows -> Preferences -> General -> Editors -> Text Editors -> Annotations
Under "Annotation Types":
select "Boot Dynamic Info", then uncheck the "Text as" checkbox on the right.
Using the answers above to set the colours, here are some that I found worked in RGB:
(65, 66, 36)
(83, 55, 55)
In my case, Spring Tool Suite 4.14.0 (202203), changing "LSP Read Occurrence" color under Windows -> Editors -> Text Editors -> Annotations solved my problem.
https://i.stack.imgur.com/v74Of.png
I had the same issue with highlighted inactive code.
I was able to change it in Window>Preferences>C/C++(or other programming language)>Editor under "Appearance color options:" select "Inactive code highlight" and change to the desired color.
Similar post about inactive code in Eclipse.
Also check "Vwrapper Search" color setting if you are using that plugin
Under Open Window > Preferences > General > Editors > Text Editors > Annotations
For some reason it overrides other defaults. Tested with the Darkest Dark theme on Eclipse 2022-09.
Annotations is the setting you want to Change (whatever Eclipse you are using - example below is CDT):
annotations / Occurences in Eclipse preferences

Pycharm: multiple tabs all with same name; how to highlight active file in project explorer?

With a number of different apps that all have their own version of "admin.py" and "views.py," etc., I have a hard time telling which one I have open when looking at the tabs (the tabs don't have the full path).
Is there a way to highlight which file I'm editing in the active tab? Normally with programs that use this format -- for instance Gmail -- the active section or file is highlighted on the left, but not so in PyCharm.
Use View | Select In | Project View or enable Autoscroll from Source option in the Project View.
In PyCharm 2.0 there will be Show directory in editor tabs for non-unique filenames option in Settings | Editor | Editor Tabs.
The project pane should have a row of buttons on the top. Mouse over them for tooltips, and look for the one that says "Autoscroll from source". Make sure to make the sidebar wide enough to see all the buttons.