highlight

Vim Markdown highlighting (list items and code block conflicts)

I decide to learn more about vim and its syntax highlighting. Using examples for others, I am creating my own syntax file for Markdown. I have seen mkd.vim and it has this problem too. My issue is between list items and code block highlighting. Code Block definition: first line is blank second line begins with at least 4 spaces or 1 t...

C# ListView Detail, Highlight a single cell

Hello, I'm using a ListView in C# to make a grid. I would like to find out a way to be able to highlight a specific cell, programatically. I only need to highlight one cell. I've experimented with Owner Drawn subitems, but using the below code, I get highlighted cells, but no text! Are there any ideas on how to get this working? Th...

javascript user selection highlighting

I'm trying to find a way with javascript to highlight the text the user selects when they click some odd highlight button (as in <span style="background-color:yellow">highlighted text</span>). It only has to work with either WebKit or Firefox, but it seems to be well nigh impossible because it has to work in the following cases: <p>this...

Highlight NSToolbarItems

I want to highlight the selected NSToolbarItem like e.g. in Adium (see screenshot). Is there an easy way? If not, tell me the difficult one. =) ...

Best algorithm for inserting text before and after a token in C#?

I'm working on a search function for an MVC C# app that will place a (possibly large) chunk of text through a filter, and given the search query, will place an html <span> with a highlighted style before and after each search term. I've got a simple algorithm working, but I've got a feeling it will be slow, probably because of the amoun...

How can I highlight java code via CSS?

I saw some cool code highlighting that looked like code in Eclipse, however I can't find it. :( Do you know any cool java code highlight css? ...

vim clear last search highlighting

After you do a search in vim you get all the occurrences highlighted, how can you 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 needed again? ...

Vim: need help with a tiny script code to highlight.

Hi. I need a script code to highlight "[Capítulo" and "]" and everything between them. Thank you. I want it to work everytime I open , for example, a .txt file. Just like code highlighting. ...

HTML textbox, auto highlighting text

How would I make a textbox, containing preexisting text, that when the user clicked within it all the text inside it would become highlighted. For example, the same way YouTube does the textboxes for the embed code on their videos. Thanks ...

Highlight text in messagebox

I need to display a message box but the user needs to be able to highlight and copy the text in the message box. How would I achieve this? FYI this in in C#. ...

jquery highlight the link when clicked

How do I use jquery to highlight the link when I click on it? For example, when I click on the link class1_1, I want to make this link red (or another color). The javascript code here: <script type="text/javascript"> $(function(){ $("#menu li").each(function(){ $(this).click(function(event){ var ul=$(this).children("ul"...

Is there a cross browser way to expand text on click via css?

First, here is what I would like to do: Row 1 Row 2 Row 3 I have code setup so that when I hover over row1, 2 or 3, the row gets highlighted. This is done via css. I would like to be able to (for instance) click row1 and then it would look like this: Row 1 Some text here Row 2 Row 3 That text would stay there until I clicked on...

How to get the parent element in an HTML string at a given offset?

New Question I am looking for a way in Javascript to get the parent element of a given position in an HTML string (e.g. document.innerHTML or document.body.innerHTML). Simple example: <p>I really <em>like <a href="...">stackoverflow</a></em> a lot.</p> ^...........^ Off...

ViM-like search highlight in Visual Studio possible?

ViM has this option hlsearch where a searched string is displayed in highlight mode at all places in the file it is found. Is there a way to do the same in Visual Studio? That is, if I search for "foobar", then all the foobar in the file are shown highlighted and this display remains until my next search. I find this very useful to see ...

Remove highlight on a selected button from a ToggleButtonBar

Well, title explains all. I'm trying to get rid of the highlight that comes around of the selected button in a ToggleButtonBar ...

JQuery: Selecting Text in an Element (akin to highlighting with your mouse)

I would like to have users click a link that then selects the html text in another element (NOT an input). By "select" I mean the same way you would select text by dragging your mouse over it. This has been a bear to research because everyone talks about "select" or "highlight" in other terms. Is this possible? My code so far is thus: ...

Exact time at which an event occurred

What i want to do is record the time of when a button has been pressed. All these times will be stored in an array. The program will then run through the array and look at the time values and then highlight the button states at those particular times during playback. Hopefully this makes sense, whats the best way to do this?! Thanks in ...

Rich text box rounded corner selection highlight

I've been searching around the web on how to code syntax highlighting text boxes and I've got most of it working. But I've always loved mac's xcode selection highlight which has rounded corners. Recently I saw this type of selection highlight in inType text editor. This image explians much better the effect I want to have in my rich text...

Flex 3 StringValidator Highlight Field

I want to perform simple validation against multiple fields. Please note these fields are not within a mx:Form since the way they are displayed isn't the norm. The validation works properly, however, it does not highlight the textInput with the error message. myValidator.source = empName1; myValidator.property = "text"; if(myValidator.v...

Highlight search text in DataView

I have a DataView and I need to search a string inside the view. I only want the search string to get highlighted and all those rows where the search string does not exist to still show but they would obviously not be highlighted. Is there any built in functionailty in DataView or DataGridView to achieve this, or do I have to traverse ea...