Styled text challenge...

Dar Scott dsc at swcp.com
Wed Feb 11 11:49:39 EST 2004


On Wednesday, February 11, 2004, at 08:39 AM, xbury.cs at clearstream.com 
wrote:

> Other than parsing completely out the html code, you would assume that
>
> set the RTFText of fld "text" to the HTMLText of fld "html"
>
> converts html to styled text... BUT IT DOESNT!
>
> There doesn't seem to be any other language features for this purpose.

It is not clear to me what you want.

Do you want the RTF representation of the HTML representation of some 
text in a field?

Does this (untried) do what you want?

    lock screen
    put field "text" into temp
    put the htmlText of field "text" into field "text"
    put the rtfText of field "text" into rtfOfHtml
    put temp into field "text"
    unlock screen

I suspect I have missed the need.

Dar Scott



More information about the use-livecode mailing list