From: Collins Richey Date: 2007-12-30T03:00:16+09:00 Subject: Re: String highlighting problem (newbie) On Dec 29, 2007 6:47 AM, Mark Toth wrote: > I have two questions: > > 1. I have a string > @string = "This is a long string". > > How can I do to make two words "bold" or "italic" in this string, for > example "is" and "long" shoudl be ? > Brute force method? ar = @string.split(' ') ar[1] = "#{ar[1]}" ar[3] = "#{ar[3]}" @string = ar.join(' ') -- Collins Richey If you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be thankful for.