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
73
votes
1 answer

Highlight selected node, its links, and its children in a D3 force directed graph

I am working on a force directed graph in D3. I want to highlight the mouseover'd node, its links, and its child nodes by setting all of the other nodes and links to a lower opacity. In this example, http://jsfiddle.net/xReHA/, I am able to fade out…
Christopher Manning
  • 4,527
  • 2
  • 27
  • 36
73
votes
4 answers

Javascript: How to detect if a word is highlighted

I'm writing a Firefox addon that is triggered whenever a word is highlighted. However I need a script that detects when a word is highlighted, and I'm stuck. An example would be nytimes.com (when you're reading an article and you highlight a word,…
user369246
72
votes
4 answers

Select a complete table with Javascript (to be copied to clipboard)

I was wondering if anybody knows how to select using js the complete table, so that the user can right-click on the selection, copy it to the clipboard and then paste it on Excel. If you select the table manually, the process works perfectly. But…
DanC
  • 8,595
  • 9
  • 42
  • 64
70
votes
7 answers

how to include video in jekyll markdown blog

I just started blogging using jekyll. I write my posts in markdown. Now, I want to include a youtube video in my post. How can I do this? Also, I dont really like the pygments highlighting provided by jekyll by default. Is there anyway I can change…
jacksparrow007
  • 1,298
  • 4
  • 19
  • 30
66
votes
10 answers

Changing the highlight color when selecting text in an HTML text input

I've been looking for this throughout the web and can't even find anyone else even asking this, let alone a solution... Is there a way to change the color of the highlight area within a text input when text is selected? Not the highlight border or…
Eric
  • 2,061
  • 8
  • 28
  • 37
63
votes
10 answers

Highlight variable under cursor in Vim like in NetBeans

I worked in NetBeans and liked this feature: when you place cursor in a variable name all occurences of the variable are highlighted. This is very useful for quick searching all occurences of the variable. Is it possible to add this behavior to Vim?
kipelovets
  • 1,204
  • 2
  • 13
  • 16
57
votes
9 answers

Programmatically select item ListView in Android

I have two fragments. The first with buttons inside, the other with a ListView inside (ListFragment). I would like the first fragment (thanks to its buttons) to allow the user to browse the ListView which is in the second fragment. So I want the…
Jecimi
  • 4,113
  • 7
  • 31
  • 40
56
votes
3 answers

Highlight the whole current line

What is the best way to highlight the whole current line in Vim? In some IDEs I am able to set some sort of 20% opacity of the line I am editing, this is great to find where I am rather quickly.
Helmut Granda
  • 4,565
  • 7
  • 35
  • 51
53
votes
7 answers

Is it possible to display indentation guides in Vim?

I'm a longtime Vim user (3 or 4 years) who has recently started dealing with some deeply nested code. This code is indented with spaces, not tabs. I would like some clean and non-distracting indication of indentation to help with keeping track of…
mjn12
  • 1,853
  • 3
  • 19
  • 27
52
votes
2 answers

How do you add syntax highlighting for Less in Notepad++?

I want Notepad++ to treat my .less files just as my .css files and thereby get syntax highlighting for any .less files I open.
Mattias Alfborger
  • 848
  • 1
  • 7
  • 15
51
votes
4 answers

How to access Kindle Highlights (API?)

I want to make a site that lets you follow other people Kindle Highlights. Is this possible Is there some sort of Kindle Highlights API? Thanks.
Johnny Appal
  • 641
  • 2
  • 7
  • 7
48
votes
6 answers

vimrc make comments italic

How do I change the ~/.vimrc to have the comments in my code italicized? In my ~/.vimrc file I have: highlight Comment ctermfg=blue that makes the comments blue. What do I need to do differently to make them italic?
john-jones
  • 7,490
  • 18
  • 53
  • 86
47
votes
10 answers

How to highlight ImageView when focused or clicked?

A good example of this is either on the Twitter launch screen (the screen with the large icons that is seen when the application is first launch) or even just look at the application tray when you focus an application icon. Basically I need to…
groomsy
  • 4,945
  • 6
  • 29
  • 33
44
votes
3 answers

Change highlight colour in Sublime Text 3?

How can I change the default highlight colour in Sublime Text 3? I used to know how find a highlight key in one of the theme files in ST2 but things changed quite on ST3. Are they in the library somewhere? "Preference >> Browse Package" is almost…
erdembayar
  • 603
  • 1
  • 6
  • 12
41
votes
6 answers

How to improve git's diff highlighting?

The output of git diff is optimized for code which tends to be one statement per line whereas text can (if authors like me are too lazy to use line breaks) cause diff output which is very hard to read and more of a "Where's Wally?" search than…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177