highlighting

Drawing in NStextField

Hey ho! If you wanted to implement a highlighting for specific substrings in a NSTextField like on the screenshot (Tweetie.app) how would you do it? :) Thanks for your help! ...

PHP/MySQL: Highlight "SOUNDS LIKE" query results

Quick MYSQL/PHP question. I'm using a "not-so-strict" search query as a fallback if no results are found with a normal search query, to the tune of: foreach($find_array as $word) { clauses[] = "(firstname SOUNDS LIKE '$word%' OR lastname SOUNDS LIKE '$word%')"; } if (!empty($clauses)) $filter='('.implode(' AND ', $clauses).')'; $quer...

JavaScript: Highlight a row when I scroll up/down

On my web page, I a table inside a DIV that is scrollable. When I scroll down, I want to highlight the center most viewable row in my table. How would I do that? I found the following script that is close to what I desire --> www.rgagnon.com/jsdetails/js-0093.html But this works only on the MouseOver event. I want this to work on not...

How to highlight HTML text without wrapping it with tags?

Is it possible to highlight text in an HTML document using without wrapping it with <span> or any other tag for that matter? For example, in the HTML code <p>The quick fox</p> I would like to highlight quick but without adding a DOM element around it. Adding a DOM element to a parent element is fine. Thanks! ...

jquery treeview highlight selected

Is highlighting the selected item supported in jquery treeview? Can you point me at sample code demonstrating? ...

Highlight text from Visual Studio 2008 add-in

Hi, guys! I'm writing another code coverage tool for .NET with Visual Studio 2008 integration. Everything goes well except one thing: I can't find a way to highlight some code chunks. I need it to inform user about covered and not covered blocks. You can see example of the feature I want on the next screenshot (from native VS code cove...

Using the mouse to highlight

Hello, I'd like to take the selected text on screen (text highlighted with the mouse) and when a button is pushed wrap that text in a tag. I'd like to use jquery but if it can be done in another framework that would be fine too. I haven't been able to figure out how to do this yet, so any thoughts are appreciated. Also I know you can r...

Qt4 compatible RegExp for URL highlighting

I'd like to automatically highlight and extract URLs from a QWebView or QTextEdit. I've found a lot of RegEx examples on the web which allows to do just that, but most of them seem overly complicated, don't work properly or are not compatible with Qt4's RegExp implementation. So I'm asking here for a Qt4-specific RegExp pattern which al...

Highlight Section of Mapped Image when Mouseover Text on Webpage

Scenario: Image with several areas mapped. A list of text on the page Desired functionality: When I mouseover the different pieces of text in the list, corresponding areas in the mapped image will become highlighted. Does anyone know of a good javascript tool that can do this? I have found a jquery plugin (map hilight) that will ...

Silverlight DataGrid Updating SelectedItem from code

When I update a datagrid SelectedItem from code (via a bound object in a ViewModel), how to I get the visual grid to highlight the newly selected item? Thanks, Mark UPDATE: This is still an issue for me. My SelectedItem property already implements change notification, but the datagrid is not VISUALLY displaying which row has been selec...

HTML annotations (selecting, highlighting, remove format)

I am working on a cross browser web based annotation toolset, which allows the users to select any part of a web page HIGHLIGHT, if you select: john is <li>big</li> <li>dump</li> Result <span style="background-color: rgb(106, 168, 79)">john is</span> <li><span style="background-color: rgb(106, 168, 79)">big</span></li> ...

PHP - Highligh selected link

How do I "highlight" (turn to a different color, make bold, whatever..) a link that has been clicked on? Example is here: http://www.celebrything.com/ Trying to get the Today, Week, and Month links in the right sidebar to turn a different color once clicked. Here's the code I'm using to show the results in the right sidebar: <div id...

Trying to make moving highlighted text type application that highlights text for help with reading pacing.

Programming language: Java Problem: I can make the highlight "snap" from word(s) to word(s), but the best outcome would be the highlight smoothly gliding across a given line and starting on the next line down as it goes out on the right side. Any suggestions? ...

IDE with error messages on line? (like XCODE, for PC)

Basically, I'm looking for an IDE for PC that's like XCODE. What I'm really looking for is the on line error highlighting, as seen here http://i45.tinypic.com/2h6srag.jpg So far I haven't been able to find anything with this. ...

javascript - stop browser highlighting images

I have made a script that allows users to drag images around. Unfortunatly though most browsers higlight the image blue. Is there a way to disable this behaviour in all browsers? ...

Highlighting syntax in a html text editor

All, In a html textarea is it possible to hightlight c and cpp syntax.If do please indicated an example code for it. int main() Int should be highlighted in this case since it is a keyword. ...

Strange problem with custom cells and the uinavigationcontroller

Hey there, I've got a navigation controller that has a grouped table with several rows, each using the same custom cell class. If I select a row it navigates to the next view. When I go back, just for a brief second, the background of the custom cell that was originally selected, expands to the full width of the screen then back again...

How do I make vim syntax highlight a whole line?

I'd like to have vim highlight entire lines that match certain patterns. I can get all the text in a line to highlight (by doing syn match MyMatch "^.*text-to-match.*$"), but it always stops at the end of the text. I'd like to to continue to the end of the term, like highlighting CursorLine. I've tried replacing $ with a \n^, hoping t...

Lightweight editor for Mac that highlights all occurrences of a word

My question is similar to this one: http://stackoverflow.com/questions/385661/emacs-highlight-all-occurences-of-a-word In Notepad++ editor, there's a convenient feature: if you select a word in your text (not necessarily a keyword), the word is highlighted throughout the text. Is there any similar way in a lightweight editor for Mac? I...

Highlighting current page in the nav

Hi I need to highlight the current page in my left nav. The nav has to be loaded externally via an .shtml include: <!--#include file="leftnav-menu.inc"--> My urls take the form of: www.xxx.com/mission-critical.shtml but sometimes just: www.xxx.com/energy.shtml (eg one word no hyphen) My nav lists it as 'Mission critical' How ca...