Lukas Renggli <reng...@...> writes:

> 
> > Is it possible to configurate the search engine to case no sensitive ?
> 
> Not at the moment, I noticed myself several times that this would be
> useful. If I find time, I will have a look at it tomorrow.
> 
> > Suppose you have more than 1 match of what you are looking in the same
> > method, is there a way to go one after the other putting the color over the
> > world ?
> 
> Not without hacking into ParagraphEditor. There is unfortunately no
> easy way to highlight several occurrences.
> 
> Lukas
> 


What I did once upon a time in VW:
- add a #backgroundColor->ColorValue text emphasis
- implement graphic rendering for this emphasis
- change the runs for every piece of matching text
  to add #backgroundColor->(ColorValue yellow) (for example)

A little bit more ellaborate than this basic idea:
don't add directly the #backgroundColor emphasis...
...but rather use an indirect one, like #searchedText.
Then let some custom-preferences translate to a real emphasis.
Advantages:
- customisable
- easy to remove all #searchedText preserving other text formatting

Nicolas


_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to