highlighting

How to change highlighted occurences color in Eclipse's sidebar?

When you have "Mark occurences" enabled in Eclipse, placing the cursor on any type/variable/method/etc will highlight all occurences in the text editor and place a faint bar in the right ruler to show you the location of other occurences in the file. Does anyone know where in the Preferences you can change what color is used to highligh...

Emacs :TODO indicator at left side

I want to have sort of indiacator at left side of the line wherever I have in the source code #TODO: some comment //TODO: some comments The indicator could be a just mark and I already enabled line numbers displayed at emacs. ...

Where can I find a jQuery syntax highlighting plugin for Notepad++?

jQuery has a syntax all its own*, and when writing ridiculously lengthy expressions I often yearn for some sort of highlighting. Is there a way to achieve this in Notepad++? *except for the bits that are shared with CSS and JavaScript... ...

How to write a php search script in which words with diacritics match search terms without diacritics, and the results are underlined?

Hi all! I've got this site where there are lots of texts with diacritics in them (ancillary glyphs added to letters, according to wikipedia) and most people search these texts using words without the glyphs. Now it shouldn't be challenging to do this by having a copy of the texts without diacritics. However, I want to highlight the matc...

Highlight fields in InfoPath that have changed

I am able to highlight fields in InfoPath if they are "new" by setting the conditional formatting to "set this field to yellow if the value is not blank" What I'm trying to do though is highlight fields when the value is changed. That is, when the value it pulled from the webservice is not the current value of the field. The forms in...

Emacs: highlighting TODO *only* in comments

This question is related to another one, Emacs :TODO indicator at left side. I recently came across a minor mode I like a lot called FixmeMode. It supports auto highlighting of TODO marks, and navigating between them. However, I think it makes more sense to recognize the "TODO" strings only in comments, rather than polluting the whole fi...

Backslash in the end of comment lines in C/C++

Does your editor/ide highlight that a++; in this C/C++ code as part of a comment? int a=1; //some comment \ a++; printf("%d\n",a); And what about this? int a=1; //some comment ??/ a++; printf("%d\n",a); ...

In SOLR, how can I get the position of highlighted snippets within associated field?

I want to display my search results in a google-like way: <title> ...<snippet>...<snippet>...<snippet>... <link> I'm concatenating the highlighted snippets, but I need to know when the snippets are at the beginning of the end of the content field (do decide whether to put the starting/ending "..."'s in) Does anyone know how I can get...

Wildcard searching and highlighting with Solr 1.4

Hey guys, I've got a pretty much vanilla install of SOLR 1.4 apart from a few small config and schema changes. <requestHandler name="standard" class="solr.SearchHandler" default="true"> <!-- default values for query parameters --> <lst name="defaults"> <str name="defType">dismax</str> <str name="echoParams">expl...

Open a PDF with a word highlighted according to a link clicked on an HTML page

Is it possible to open a PDF on clicking a link in a web page, at a certain page with a certain word highlighted. E.g. my app scans keywords in pdf docs and prints a summary of their appearances. It would be nice if the user could click a link and have the PDF open at the correct page with all instances of that word being highlighted on ...

Home link on the menu does not highlight

My menu shows the active links when clicked on it except for the home link (http://www.obsia.com). It is never highlighted. I tried playing around but I can't seem to figure it out. This is the jquery code I used to highlight the links? $(function(){ var path = location.pathname.substring(1); if ( path ) $('.nav a[href$="' ...

Highlight overlapping text in JQuery

I've got this plain HTML: "Many things are in my room: a bed, a desk, and a computer." And these phrases: "things are" "are in my room" "room: a bed" In JQuery, is there some way to loop through the phrase list, and highlight the phrases as they appear in the text, and have the overlap delineated by color, or border, etc? I know ...

How do I make a RichTextArea in Google Web Toolkit(GWT) Selectable/Highlight-able by a mouse but not Editable/Modifiable?

I'm currently making a GWT project where I display some HTML in a RichTextArea, and I want the RichTextArea to be selectable/highlight-able by a mouse but NOT be editable/modifiable by the user. In addition to this question, could you also tell me how to retrieve some highlighted text in string from without me having to add a text-backgr...

Csharp component which generates fragments with highlights for diffs for 2 strings

I need C# implementation ( ideally open source ) which is similar to Delphi DLL. I am currently using the wrapper ( C# syntax is provided , but it is a call from a different language ) zdiff( string ref str1, string ref str2, int range , int trim ) it calls inside str1 = GetHiDiff(@str1,1,trim) str2 = GetHiDiff(@str1,2,trim) ...

How can I change the color of build output in a shell window?

I have a build process which runs from a batch file. It produces a large volume of text. Sometimes it prints the word "Error" or "Warning" followed by a message. The errors and warnings are getting lost among a sea of text. Can I highlight those words in a different color, maybe in a dos window, or a cygwin shell window, possibly by ...

replace string in preg_replace

<?php $a="php.net s earch for in the all php.net sites this mirror only function list online documentation bug database Site News Archive All Changelogs just pear.php.net just pecl.php.net just talks.php.net general mailing list developer mailing list documentation mailing list What is PHP? PHP is a widely-u...

jQuery + Validation plugin: add/remove class to/from element's error container

Hi guys, I'm working with the jQuery Validation plugin and I wrote the following code which adds a class to the element's (<input>) parent (<label>) if not valid, as well as inserting the actual error element (<span>) before the <br>. the HTML ... <label> text<br><input> </label> ... and the jQuery. $("#form_to_validate").valid...

Highlighting in Solr 1.4 - requireFieldMatch

I have an object Title : foo Summary : foo bar Body : this is a published story about a foo and a bar All three are set up as fields with stored=true. The user searches across my system for the word "foo" I would like to highlight foo in all three places. The user searches for the word foo in the title "title:foo" I o...

C# cursor highlighting/follower

How to highlight the system cursor? Like many screen recording applications do. Ideally, I'd like to display a halo around it. Thanks ...

How do you update table row background color in IE using Javascript/CSS ?

I have a table that i want to "highlight" during onmouseover/onmouseout. I already know this is required in IE but not in other browsers. I have managed to detect the events triggering and this TR tag effectively works. (Note that the originating class "contentTableRow" doesn't seem to be causing any issues.) class="contentTableRow" on...