Re: coloring only some substring
- To: mathgroup at smc.vnet.net
- Subject: [mg54990] Re: coloring only some substring
- From: dh <dh at metrohm.ch>
- Date: Wed, 9 Mar 2005 06:34:17 -0500 (EST)
- References: <d0jtph$mvg$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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 >