Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlighted Text background and foreground - How to change?

Here is my scenario. I like my color scheme. I have a dark blue background with light grey text. I have the Plain Text option in VS 2010 in Tools | Options | Environment | Fonts and Colors set to be a dark grey for the foreground and dark blue for the background:

alt text http://www.elbalazo.net/post/vs_plaintext_color.jpg

But I need to fix this major problem/annoyance which is when I highlight some text and then lost focus with my mouse it turns almost completely white!

alt text http://www.elbalazo.net/post/WhiteBackgroundVS2.jpg

And worse, when I mouse over the little section lines of code on the left, the selection of the entire editor goes white with a light grey foreground for text:

alt text http://www.elbalazo.net/post/WhiteBackgoundVS.jpg

Not able to figure out where and how to fix this. I don't see a way. Note: I'm using R# 5.0+ so I don't know if that has anything to do with this color issue or what...maybe it's overriding some VS stuff or this is just a VS issue I don't know..probably just not looking in the right area under Fonts and colors...but a lot of the item foreground elements are read only.

UPDATED:

I think it might be (not sure) this one but I can't test it as the foreground is locked and not editable:

alt text http://www.elbalazo.net/post/vs_brachmatching_color.jpg

like image 893
PositiveGuy Avatar asked Aug 10 '10 20:08

PositiveGuy


People also ask

Why change background color of highlighted text on Windows 10 PC?

Usually, people change the background color because they will find the default color dull or bland and they would like to show a unique or great color. In this tutorial, I will show you how to change the background color of highlighted or selected text on Windows 10 PC and laptop.

What does foreground and background color mean?

The foreground color is the color used in the outlining margin and the background color is the color used under the text. You can also disable that highlight by disabling Tools->Options->Environment->General->Enable rich client visual experience, though that will disable other things (animations, gradients, etc.)

Why is the highlight background and text color different on different websites?

If you try selecting text on different websites, you are likely to notice (or have already) that the highlight background and text color may vary from one site to another. The default highlight color of the user's operating system. Customization by the developer. Each operating system has its own default text highlight color.

How to change text background color in Turbo C?

Currently the text background color displayed is Red color. You can change your desired text color by passing integer values (in the range of 0 to 256) in the SetColorAndBackground (int ForgC, int BackC) function. The source code is short; compile it in Code::Blocks, not Turbo C. Here’s an output screen of what happened in the console window.


5 Answers

I'm pretty sure your first problem can be solved by setting the colors on the 'Highlighted Reference' option in the Fonts and Colors window. If ReSharper is override this setting I couldn't tell you. I don't have it installed on this machine. As for your second problem I have no idea.

If you get too irritated at trying to figure out the color options you could also try Studio Styles for pre-made ones. I believe that is where I got the one I use currently.

like image 118
Sean Copenhaver Avatar answered Oct 14 '22 08:10

Sean Copenhaver


I believe the setting you are looking for is "Inactive Selected Text". Found while trying to figure out why my selected search texts were not highlighted in an obvious manner.

Might be a year late... answering for future searches.

like image 32
ObjectType Avatar answered Oct 14 '22 07:10

ObjectType


ReSharper is indeed overriding some of your settings, but those settings can be found in the same screen, towards the bottom of the listbox.

In Tools | Options | Environment | Fonts and Colors, scroll to the bottom of the 'Display Items:' listbox, and you should see a series of settings that start with ReSharper. For instance, the 'ReSharper Current Line Highlight` was causing me issues when I changed my theme to use a dark background.

Hope that helps.

like image 32
Brandon Satrom Avatar answered Oct 14 '22 08:10

Brandon Satrom


The highlight for matching references is the "Highlighted Reference" background color (as Sean Copenhaver pointed out).

The highlight for the outlining region hover is "Collapsed Region" (as Brandon Satrom pointed out in his comment on the original question). The foreground color is the color used in the outlining margin and the background color is the color used under the text. You can also disable that highlight by disabling Tools->Options->Environment->General->Enable rich client visual experience, though that will disable other things (animations, gradients, etc.)

The brace matching rectangle is the highlight that appears when you insert or put the caret on a brace (e.g. ")", "]", "}"). It only lets you override the background color because you can't use it to change the foreground (text) color.

like image 29
Noah Richards Avatar answered Oct 14 '22 09:10

Noah Richards


I had this same problem (much later) with VS 2010 and R# 7.1.

Disable the "Highlight current line" option in ReSharper > Options > Environment > Editor.

That option, when enabled, causes the VS 2010 color options for Highlighted Reference to not apply.

like image 30
JYelton Avatar answered Oct 14 '22 09:10

JYelton