highlighting

"2d Search" in Solr or how to get the best item of the multivalued field 'items'?

The title is a bit awkward but I couldn't found a better one. My problem is as follows: I have several users stored as documents and I am storing several key-value-pairs or items (which have an id) for each document. Now, if I apply highlighting with hl.snippets=5 I can get the first 5 items. But every user could have several hundreds i...

Best way of drawing text to the screen

Hi, I am working on a read-along-book app for the iPad which is very similar to this Toy Story book ([url=http://itunes.apple.com/us/app/toy-story-read-along/id364376920?mt=8]Toy Story Read-Along for iPhone, iPod touch, and iPad on the iTunes App Store[/url]). So my question is how would be the best way to draw the text to the screen an...

Rails wiki highlight/strikethrough version differences between article versions

Hi I'm wondering how to implement highlighting of changes to user edited articles on a wiki style rails project. Since articles may be fairly lengthy I'd ideally like strikethrough and highlighting, similar to github and wikipedia for example. Despite searching around the net I've not really come up with much, apart from instiki which i...

Change default onListItemClick Behavior of ListView

Is there any way i can make my listactivity (rather listview) highlight the List Item when it is clicked (pressed) upon? (...and remain highlighted) The default behavior, simply highlights the item for a moment, and it gradually fades to black... Currently, the highlighting only happens when we use the DPad... It'd be ideal if atleast ...

i want to write a text highlighter using JavaFX

hello , i tried writing a text highlighter using in javafx where i hava textfield and textarea with contents and as and when the text is entered in the textfield the text is to highlighted , but failed , i need guidance.. thank you for all the help. ...

Textmate syntax highlighting, extending highlighting from another language

I'm trying to extend some CSS highlighting in Textmate. My approach is like so... { .... patterns = ( { include = 'source.css'; }, { name = 'support.function'; match = '\..*\);'; }, ); } The problem is "include = 'source.css';". If I remove that line. My custom matcher hits...

Vim: highlight latex comment using a differnt file type.

I am using vim to write latex. I would like to highlight the latex comments using a different file type. (For example I would like to highlight the latex comments using c++ formatting). Is there a way to do this? (Edit) Example: \section{Introduction} % This is a comment. I would like to higlight comments using the % synta...

Highlight in PHP

Possible Duplicate: highlighting search results in php/mysql I am doing a search with a query, in MSSQL, like this: SELECT ctext FROM Table WHERE ctext like '%filter%' Then, I am wanting to highlight the hits with php: function highlightme($str, $filter){ $html = "<FONT style=".chr(34)."BACKGROUND-COLOR: yellow". ...

jquery validation, highlighting does not work as intended

Hi, I'm trying to validate a very simple form with the jquery validate plug-in. It does seem to work fine with Firefox but the form is intended for the iPhone and there it behaves odd. So I assume I'm doing something wrong (I'm using the UiUIKit as a basis). What I try to achieve is to only put class="error" to the input's parent li and ...

RichTextBox Highlight All Instances of a Phrase

In VB.Net, is it possible to highlight ALL instances of a phrase instead of only a single instance of it, for example: txtView.SelectionStart = txtView.Find("ERROR: Invalid command entered.") txtView.SelectionColor = Color.Red This would highlight "ERROR: Invalid command entered.", however if my RichTextBox text is: ERROR: In...

Programmatically manipulate webpage from C# or Java

I would like to be able to interact with html webpages from C# or Java. Basically I would like to load the page and display it (just as it would be displayed in a browser) and be able to highlight and select text by index, tag, word etc (which would be passed back into my program) and manipulate. I am not interested in manipulating HTM...

Need to highlight overlapping text using PHP

Hi all, I am looking for means to highlight certain text on a page. I use <span class="highlight">This is a sample</span> to replace the text "This is a sample" that is found, with the help of the preg_replace function. My problem arises when there is overlapping text. If I search for the phrase "sample text" on the same page, it is no...

Change CSS of selected text using Javascript

I'm trying to make a javascript bookmarklet that will act as a highlighter, changing the background of selected text on a webpage to yellow when the bookmarklet is pressed. I'm using the following code to get the selected text, and it works fine, returning the correct string function getSelText() { var SelText = ''; if (window.getSelec...

Highlight search terms (select only leaf nodes)

I would like to highlight search terms on a page, but not mess with any HTML tags. I was thinking of something like: $('.searchResult *').each(function() { $(this.html($(this).html().replace(new RegExp('(term)', 'gi'), '<span class="highlight">$1</span>')); )}; However, $('.searchResult *').each matches all elements, not just lea...

Solr - omit certain fields from being highlighted

Hi all I have a Solr engine deployed with a Standard Request Handler <requestHandler name="standard" class="solr.SearchHandler" default="true"> <!-- default values for query parameters --> <lst name="defaults"> <str name="echoParams">explicit</str> <str name="facet">true</str> <str name="facet.field">path</str> <str name...

Where color of cursor line is defined?

If I set cursorline option I get my current cursor line underlined and all characters which color is not specified also turn to yellow (yellow appears only if Normal highlight group is untouched). I wonder, where this color (yellow) is defined? Edit: I know about CursorLine highlight group. The problem is that in default colorscheme whi...

VS2010 block highlighting

How to turn off block highlighting for visual studio 2010 ? It is annoying specially when you are using custom font and color settings. ...

IDE with HTML closing tag highlighting similar to closing brace

Is there an IDE that highlights each HTML closing tag (as you highlight over the opening tag, for example), similar to how many IDE's highlight where the opening/closing braces are for functions and such? ...

When removing an item from a ListView, how do I highlight the item that relaces it in VB.NET?

I have a ListView in my project that has dynamically added/edited/deleted items. When the user deletes an item, I want the item that replaces the deleted item to be highlighted. I tried simply storing the deleted item's index then highlighting the item there (list.Items(index).Selected = True). This works well unless the item deleted was...

How can i put a web word processor on my site?

How would I implement a word processor on a website I'm making? The point is I want a user to be able to type in text and it have syntax highlighting in the text box they're typing in. Could someone instruct me in how to do this? ...