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
6041
votes
45 answers

How to disable text selection highlighting

For anchors that act like buttons (for example, the buttons on the sidebar of this Stack Overflow page titled Questions, Tags, and Users) or tabs, is there a CSS standard way to disable the highlighting effect if the user accidentally selects the…
anon
2324
votes
32 answers

Vim clear last search highlighting

After doing a search in Vim, I get all the occurrences highlighted. How can I disable that? I now do another search for something gibberish that can't be found. Is there a way to just temporarily disable the highlight and then re-enable it when…
Gabriel Solomon
  • 29,065
  • 15
  • 57
  • 79
276
votes
39 answers

How do you make an element "flash" in jQuery

I'm brand new to jQuery and have some experience using Prototype. In Prototype, there is a method to "flash" an element — ie. briefly highlight it in another color and have it fade back to normal so that the user's eye is drawn to it. Is there such…
Howard Pinsley
  • 11,300
  • 15
  • 49
  • 66
262
votes
14 answers

How do you make Vim unhighlight what you searched for?

I search for "nurple" in a file. I found it, great. But now, every occurrence of "nurple" is rendered in sick black on yellow. Forever. Forever, that is, until I search for something I know won't be found, such as "asdhfalsdflajdflakjdf" simply so…
mbac32768
  • 11,453
  • 9
  • 34
  • 40
235
votes
1 answer

What exactly is the `#:~:text=` location hash in an URL?

Today I noticed that some searches on Google gave me links to results with apparent instructions to highlight text. Google brought me to What is the maximum size of a zip file on Windows 10 Pro 64... at the following…
palsch
  • 5,528
  • 4
  • 21
  • 32
186
votes
7 answers

LaTeX package for syntax highlighting of code in various languages

I am looking for a LaTeX package that does syntax highlighting on code. For example, right now I use the verbatim block to write code: \begin{verbatim} Hello
Vincent Ramdhanie
  • 102,349
  • 23
  • 137
  • 192
136
votes
6 answers

Disable Blue Highlight when Touch/Press object with Cursor:Pointer

There is a blue highlight that appears whenever a Div that has the cursor:pointer property applied is touched in Chrome. How can we get rid of it? I have tried the following: -webkit-touch-callout: none; -webkit-user-select:…
Ulad Kasach
  • 11,558
  • 11
  • 61
  • 87
118
votes
13 answers

Highlight changed lines and changed bytes in each changed line

Open Source project Trac has an excellent diff highlighter — it highlights changed lines and changed bytes in each changed line! See here or here for examples. Is there way to use the same color highlight (i.e. changed lines and changed bytes too)…
user256497
109
votes
16 answers

Disable orange outline highlight on focus

I am coding an app using jQuery, jqTouch and phonegap and have run across a persistent problem which arises when a user submits a form using the Go button on the soft keyboard. Although it is easy to get the cursor to move to the appropriate form…
eggdeng
  • 1,099
  • 2
  • 8
  • 3
99
votes
8 answers

How can I select or highlight a block in Emacs?

I want to select or highlight a block in Emacs without using the mouse, but doing it from the keyboard like Vim's visual mode. What is the easiest way to do this from a keyboard?
systemsfault
  • 15,207
  • 12
  • 59
  • 66
92
votes
10 answers

Highlighting Text Color using Html.fromHtml() in Android?

I am developing an application in which there will be a search screen where user can search for specific keywords and that keyword should be highlighted. I have found Html.fromHtml method. But I will like to know whether its the proper way of doing…
sunil
  • 9,541
  • 18
  • 66
  • 88
90
votes
15 answers

jQuery "blinking highlight" effect on div?

I'm looking for a way to do the following. I add a
to a page, and an ajax callback returns some value. The
is filled with values from the ajax call, and the
is then prepended to another
, which acts as a table column. I would…
ZolaKt
  • 4,683
  • 8
  • 43
  • 66
89
votes
5 answers

Visual Studio 2017 & 2019 highlight occurrences of selected word in scrollbar

When I mark a word (of any kind) I would like all occurrences (in that particular file) of that word to be highlighted in the scrollbar on the right hand side. This was a feature in VS2015 and VS2013. I cannot imagine that they removed it, I just…
ToFo
  • 1,643
  • 1
  • 19
  • 34
80
votes
2 answers

Manually highlight selected text in Notepad++

I was trying to find a way to highlight a selected block of code in Notepad++ like Microsoft Word allows you to do for a document. Is this possible?
user2127480
  • 4,623
  • 5
  • 19
  • 17
80
votes
3 answers

CSS- Highlight a div when the id is linked to using an anchor?

What I am attempting to do is to highlight a div with a certain id, when It has been referred to by an anchor on another page IE: User clicks link href="qw.html#test", when the page is loaded, then the div with the id="test" is highlighted so that…
harley_woop
  • 1,739
  • 4
  • 15
  • 28
1
2 3
99 100