MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: coloring only some substring


Hi,
the magic word is: FontColor:

lst = {"to", "be", "or", "not", "to", "be", "bottom"};
lst /. x : "to" -> StyleForm[x, FontColor -> Hue[1]]

Sincerely, Daniel

fartous at mail15.com wrote:
> hi
> i have the list:
> lst={"to","be","or","not","to","be","bottom"}
> how to search for the string "to" and then to output the whole content of List 
> lst but with the substring "to" colored in red.
> thanks
> 
> jack
> 


  • Prev by Date: Re: Re: where is DrBob's web site?
  • Next by Date: Re: substrings at the end of words
  • Previous by thread: coloring only some substring
  • Next by thread: Re: coloring only some substring