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
19
votes
6 answers

How can I highlight the table row on click ?

As my project requirement i have to highlight the table row on onClick. There is any way to do this? Or please suggest me the alternative?
Ravi
  • 211
  • 1
  • 2
  • 4
18
votes
5 answers

How can I highlight the text of the DOM Range object?

I select some text on the html page(opened in firefox) using mouse,and using javascript functions, i create/get the rangeobject corresponding to the selected text. userSelection =window.getSelection(); var rangeObject =…
ganapati
  • 625
  • 2
  • 12
  • 24
17
votes
4 answers

How to change the color of the currently selected line in a code assist popup in Eclipse?

I've recently downloaded Eclipse 3.6, everything works fine, but there is one issue that really frustrates me. The highlight color of a currently selected item in a code assist popup is barely visible against white background. I've tried to mess…
NewlessClubie
  • 983
  • 2
  • 8
  • 18
17
votes
8 answers

Jquery: is there a way to highlight the text of a Div when you click on it?

With Jquery is there a way to highlight/select(like if someone were to select it with the mouse) the text inside of a div that i click on? not a textbox, just a normal div. i'm trying to make a 'short url' box, where when someone clicks on the…
android.nick
  • 11,069
  • 23
  • 77
  • 112
17
votes
2 answers

Highlight text as you type on textarea

I'm trying to create a textarea that will highlight some keywords as the user types in there. I understant textarea can only support plain text and that I have to use a 'rich text' editor in order to achieve this. I would like something really…
remedix
  • 492
  • 6
  • 13
17
votes
5 answers

Text editor vertical lines on statements

In other text editors, such as Notepad++, if statements among other things had a vertical line connecting the if to the else, and the else to the end, which makes visual parsing much easier. Example (Vertical lines highlighted by black boxes): I…
Postman
  • 517
  • 2
  • 8
  • 17
17
votes
2 answers

highlight a DOM element on mouse over, like inspect does

We have a bookmarklet, and the user clicks a button and an inspect like highligther needs to kick in. We want to this to be cross browser. For this we need to detect the DOM element during the mouse move, and once we have this element we need to…
Ionut Flavius Pogacian
  • 4,750
  • 14
  • 58
  • 100
14
votes
3 answers

OpenGL - object outline

I'm trying to implement a selection-outline feature. This is what I get up to now. As you can see, the objects are selected correctly when the mouse hovers and a contour is drawn around the selected object. What I would like to do now is to outline…
Arctic Pi
  • 669
  • 5
  • 19
14
votes
4 answers

Does Vim have indentation guides, Notepad++-style?

In Notepad++, there is a dotted line that runs down from the function keyword through the end of the method. It looks like this: Does Vim support something similar?
Apotheosis
  • 151
  • 3
14
votes
1 answer

Changing text selection color in NSTextView

I'm trying to write a "highlight" feature on an NSTextView. Currently, everything works great. You select a range of text and the background color of that text changes to yellow. However, while it's still selected, the background is that standard…
Dexter
  • 5,666
  • 6
  • 33
  • 45
14
votes
5 answers

How can you change the highlighted text color for a WPF TextBox?

The WPF TextBox natively makes use of the System Highlight color for painting the background of selected text. I would like to override this and make it consistent since it varies by OS/user theme. For ListBoxItems, there is a neat trick (see…
Steve Cadwallader
  • 2,656
  • 4
  • 28
  • 37
14
votes
3 answers

WebStorm "weak warnings found" but no highlighted code

New to WebStorm. Trying to determine why WebStorm does not always display highlights in source code, even though weak warnings are reported? As an example, there may be "2 weak warnings found", but only 1 line highlighted in the source editor…
K. Kwan
  • 143
  • 6
14
votes
1 answer

Curious behaviour of fragment_size in elasticsearch highlighting

TL;DR : I don't understand how highlighting is working, and more precisely how fragment_size influences the highlighting. On a new ES installation (1.4.2), I'm creating an index with the following settings : { "mappings" : { "test": { …
Scharron
  • 17,233
  • 6
  • 44
  • 63
14
votes
3 answers

Vim highlight a word with * without moving cursor

I would like to be able to highlight the word under cursor without going to the next result. The solution I found uses a marker: noremap * mP*N`P Is there any better solution ? I noticed vim is not really good to keep the position of its cursor…
nowox
  • 25,978
  • 39
  • 143
  • 293
14
votes
4 answers

How to syntax highlight for Org-mode inline source code src_lang{}?

Is there a way to syntax highlight Org-mode inline source code which is marked with src_ruby{Array.new} ? Does Org-mode has default option for this ? Or Is there other method to do this ?
stardiviner
  • 1,090
  • 1
  • 22
  • 33