MathGroup Archive 2005

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

Search the Archive

Re: coloring only some substring


lst={"to","be","or","not","to","be","bottom"}

lst /. "to" -> "\!\(\* StyleBox[\"to\",FontColor->RGBColor[1, 0, 0]]\)"

Steve Luttrell

<fartous at mail15.com> wrote in message news:d0jtph$mvg$1 at smc.vnet.net...
> 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: substrings at the end of words
  • Next by Date: Re: substrings at the end of words
  • Previous by thread: Re: coloring only some substring
  • Next by thread: Re: coloring only some substring