repeat loop and formatting question
Mark Swindell
mdswindell at cruzio.com
Sun Nov 16 00:32:35 EST 2008
Another question: Is there a straightforward way to maintain
uppercase letters in this swap-out scheme?
replace "th" with "<b>th</b>" in tText also replaces "Th" with "<b>th</
>"
Thanks,
Mark
On Nov 15, 2008, at 4:10 PM, Ken Ray wrote:
>> How about
>>
>> put fld 1 into tText
>> replace "ck" with "<font><b>ck</b></font>" in tText
>> replace "ch" with "<font><b>ch</b></font>" in tText
>> replace "oa" with "<font><u>ch</u></font>" in tText
>> replace "oo" with "<font><u>oo</u></font>" in tText
>> ...
>> set the htmltext of fld 1 to tText
>
> Actually, you can type less by eliminating the <font> tags:
>
> put fld 1 into tText
> replace "ck" with "<b>ck</b>" in tText
> replace "ch" with "<b>ch</b>" in tText
> replace "oa" with "<u>ch</u>" in tText
> replace "oo" with "<u>oo</u>" in tText
More information about the use-livecode
mailing list