Questions tagged [highlight]

is for questions involving the highlighting of text or other visual elements.

Highlighting is usually a color-background change that emphasizes text, but it could be other ways of emphasizing any visual element.

2914 questions
14
votes
2 answers

apply several mouseover events to neighboring (connected) nodes

I have a network diagram (force-directed graph), a scatterplot, and a table that are all interconnected (see jsFiddle). I have the interconnections working the way I want them for mouseover events. I would like to modify my code so that when I…
Jean V. Adams
  • 4,634
  • 2
  • 29
  • 46
14
votes
2 answers

JavaScript: Remove current mouse highlight from the page?

Let's say I highlight some text on the page using my mouse. How can I remove all highlighted text using JavaScript? Thank you.
thedp
  • 8,350
  • 16
  • 53
  • 95
14
votes
2 answers

Set ComboBox selected item highlight color

I need to change the highlight color of a ComboBox's selected item in the popup list. I've found several tutorials explaining how to do this, but all of them either use Blend, which I do not have and cannot obtain, or involve changing the system…
Klay
  • 1,971
  • 5
  • 26
  • 40
13
votes
1 answer

Eclipse - Yellow highlight and substitution of words with autocomplete

I have a problem with Eclipse in Debian Buster. Every time I activate autocomplete near a word, the same is highlighted in yellow and, if I confirm completion, it is replaced. In Windows I didn't have this problem; I believe it is some Eclipse…
dems98
  • 814
  • 3
  • 9
  • 22
13
votes
1 answer

Flutter - select only single item in list view

In my app I am generating a ListView and items can be highlighted by tapping on them. That works fine and I also have a callback function that gives me the key for the just selected item. I can currently manually deselect the item by tapping on it…
Stephen S
  • 135
  • 1
  • 1
  • 8
13
votes
12 answers

How to disable "highlight subviews" message for UIView/UIViewController in iOS SDK?

I want to use the default highlight on a UITableViewCell when it is tapped. However, I do not want custom subviews (and their subviews) to receive the message to update their highlighted states and therefore disrupt the backgroundColor property.…
Jacob M. Barnard
  • 1,347
  • 1
  • 10
  • 24
13
votes
2 answers

VIM: How to change the Showbreak Highlight color without using the NonText Color-element

I noted that the 'showbreak' symbol is highlighted with the highlight "NonText" color-element. NonText is also used for the EOL Characters. I would like to keep the highlight-color for the EOL characters but want to change it for the showbreak…
Reman
  • 7,931
  • 11
  • 55
  • 97
13
votes
4 answers

How to highlight ListView-Items

i got the following problem. i have a ListView with custom rows consisting of an imageview and a textview. the textview's xml code is
mad
  • 3,493
  • 4
  • 23
  • 31
13
votes
8 answers

highlight text inside a textview

I have a TextView with a random background color (could be any color really). I also have a text on this Textview that need to be readable. I assume the best solution is to highlight the said text in white and set the text color to black. My…
Slamit
  • 465
  • 1
  • 6
  • 21
13
votes
1 answer

How to change TODO highlight in atom editor

In my opinion the higlighting of a TODO "flag" in the atom editor is too weak/unobtrusively. How can I change this? I DON'T wanna list the todos in a sidebar (https://atom.io/packages/todo-show). Here to compare: In Vim editor there is very strong…
zypro
  • 1,158
  • 3
  • 12
  • 33
13
votes
7 answers

How to highlight a UIView like Apple does

When the user touches a UIButton it gets grayed-out a bit. What apple does to get such an effect? I need the same effect on my custom UIButton when it is highlighted. -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object…
t0a0
  • 668
  • 1
  • 9
  • 18
13
votes
4 answers

jquery find element with class and style display:block

I am retrieving the number of "found" elements (these elements have the .highlight class) with this simple jQuery snippet: $(".highlight").length But now my problem is that some elements are hidden, via style="display: none;" Now, How can I get the…
spiderman
  • 1,565
  • 2
  • 16
  • 37
13
votes
2 answers

D3 highlight selected node, and its links to parent and ancestors in a force directed graph

I would like to highlight the links and nodes to the parent node in a graph when the child node is hovered. I took inspiration from The New York Times 'Paths to the white house': I have seen the answer to this question with this Fiddle using: var…
Joyce Bombay
  • 131
  • 1
  • 1
  • 7
13
votes
4 answers

How to highlight text like in the image?

How to highlight the text "cell phone" in the image? Updated I want to search text on a page and if found, the text should be highlighted in the way I have shown in the attached image.
Sanoj Kashyap
  • 5,020
  • 4
  • 49
  • 75
12
votes
3 answers

How does a website highlight search terms you used in the search engine?

I've seen some websites highlight the search engine keywords you used, to reach the page. (such as the keywords you typed in the Google search listing) How does it know what keywords you typed in the search engine? Does it examine the referrer HTTP…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607