Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: coloring only some substring

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54995] Re: coloring only some substring
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Wed, 9 Mar 2005 06:34:21 -0500 (EST)
  • References: <d0jtph$mvg$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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