How to stop VS 2022 Standard Edition from highlighting the code when I select search - visual-studio-2022

Background
Using my newly installed VS 2022, when I search within the text of my code (say using <Ctrl>+<F3> followed by <F3>), the entire text is background-highlighted in dark-blue, forming a jagged edge of lines. The jagged edged lines are due to the fact that the lines of my code are not all of same length. This is especially contrasted against the black background (where I have no code) in "Dark" mode.
The "Blue" mode has the same effect but the contrast of background-highlighted text and background with no text, is not so pronounced.
To end this highlighting I need to escape out of the search mode.
Question
How can I stop this background highlighting of the code when I search?

What I needed to do is change the background of the search in "Find Scope Highlight"
Select the menu: Tools.(Options...).Environment.(Fonts and Color).(Find Scope Highlight) and change the [Item background] to Black

Related

Selecting partially bolded DrawingText in Catia Drawing workbench

I'm currently developing a Catia vba script to look for specific texts in a plan, within the Drawing workbench.
For this particular macro, I need to search bold text. But the thing is I know that the DrawingText object has an attributed called bold that evaluates to True if ALL the text is bolded, but not if just a word is bolded.
Example:
This is my text -> True
This is my text -> False
What would be a good way to indentify this partially bolded DrawingText objects?
aText.GetParameterOnSubString(catBold,startPos,numChars)
will return 1 if all the characters in the specifed substring are Bold, 0 otherwise.
So first check if your sub-string is in the text by using InStr(aText.Text,subString). and if it is, use this test to see if is in Bold.

How to change the highlighting color for matching parentheses / double quotes in VS2013 for VB.NET?

How can I change the highlighting color for matching parentheses / double quotes in Visual Studio 2013 (language VB.NET)?
In Tools -> Environment -> Fonts and Colors -> Display Items, I tried changing (and ran over all other options but can't seem to find a suiting one):
the colors for Brace Matching (Highlight)
the colors for Brace Matching (Rectangle)
It annoys me I can't see the characters when they are highlighted.
Edit: "Brace Matching (Highlight)" -> Item Background, greyed out, changing the foreground color on this option doesn't seem to change anything either:
Go to Tools -> Environment -> Fonts and Color -> Brace Matching and change the "Item Background"
With the dark theme Maroon works well.

Excel userform label different color text

I am creating a userform in Excel, I have a Label with a large amount of text in. I need to have certain words in Bold and in Red color and the rest in standard black.
I can change the whole text color in the properties but not just certain words.
Is this possible and if so how would I do it?
Select certain word and fill with BOLD or make it RED
Also this depends on your Excel Version, I using Excel 2013
I do believe that it isn't possible..
You'll have to create different Labels in order to change only certain parts of your text color.

Customized report colors "snapping" to windows default colors

I have a chart in an Access 2010 report for which I am trying to set colors of different series dynamically. The user can use checkboxes to select series to chart, with the intent being that the series on the chart will take its color from the BackColor property of the checkbox's label.
The problem is that when I run my code to create the report, the colors used are not the ones on the corresponding labels. Instead it looks like they are "snapping" to the list of colors at the following link, referred to as "standard windows colours". List of standard windows colors in RGB and Long
For example:
With myChart.SeriesCollection(1)
.Interior.Color = RGB(195, 215, 155)
End With
Sets series 1 to a dark grey color, and debug.print myChart.SeriesCollection(1).Interior.Color returns 12632256, rather than 10213315 like it should. (Long color = Red + Green*256 + Blue*65536)
I have tried opening the chart object and defining the custom colors that I want to see on the palette for the chart, and setting the appropriate colors for the series manually. This works until I try to programatically change anything, at which point, all of the colors snap to the list I linked above.
Any ideas for how to dynamically set chart colors to custom values?
Managed to answer my own question. Manually customizing the palette in MS Graph was necessary, but from there, I need to reference the colors by their index on the palette (using .Interior.ColorIndex), rather than from their RGB or Long code. The index numbers for the palette are not in any logical order, but can be found in a file accessible from this site.
It's not quite as dynamic as I had hoped for, but this is definitely good enough for what I need to do.

execCommand insertHTML breaks stored window.getSelection()

When using methods of selecting text and restoring selected text in a page, I have found that running execCommand('insertHTML... inbetween causes the stored selection to break.
This is a sample of how the text is selected and restored.
// Get Selection
var sel = window.getSelection().getRangeAt(0);
// Clear Selections
window.getSelection().removeAllRanges();
// Restore Selection
window.getSelection().addRange(sel)
This works fine, however once you run execCommand('insertHTML.. the selections endOffset sets itself to the same value as the selections startOffset
Is there a reason for this? More importantly is there a way round this?
A full example of the bug, complete with some basic console logging can be seen here.
http://jsfiddle.net/blowsie/Y8pJ7/
The objective of this fiddle is to select text , transform it to uppercase and then reselect the text.
How best to save and restore the selection really depends on what you're doing. For your specific example, where existing text is just having its case transformed, I'd suggest a character index-based approach, such as https://stackoverflow.com/a/5596688/96100 (although that answer requires Rangy, but can be trivially changed not to require it: http://jsfiddle.net/Y8pJ7/8).
For some other cases, a better approach is to use invisible marker elements at the start and end of the selection, which is the approach taken by the selection save/restore module of Rangy (disclosure: I am Rangy's author).
UPDATE 18 June 2012
Rangy now has character offset-based save and restore of selections and ranges via a new TextRange module (demo).