set the textStyle to not bold
Paul Foraker
paul.foraker at gmail.com
Fri Oct 2 18:57:07 EDT 2009
This would be a way to follow Craig's suggestion:
put the htmlText of fld 1 into temp
replace "<b>" with "" in temp
replace "</b>" with "" in temp
set the htmlText of fld 1 to temp
-- Paul
On Fri, Oct 2, 2009 at 3:39 PM, <DunbarX at aol.com> wrote:
> The proffered scripts all necessitate that the original text, likely from a
> field, be manHandled word by word.
>
> This is because text in a variable does not retain the textStyle of the
> source. But don't I remember that there is a way, or a gadget, that holds the
> style along with the raw text? The only reason it might matter is speed; a
> lot of getting and setting goes on in the solutions offered. It might be worth
> it to put massive amounts of text in a variable and process there,
> returning the new styled text to the field in one put.
>
> Seems like I saw this somewhere...
>
> Craig Newman
More information about the use-livecode
mailing list