Actually, using the textStyle is another option: set the text of word 1 of line 1 of fld 1 to "<b>" set the htmlText of word 2 to -1 of line 1 of fld 1 to "<b>This is bold text</b>" set the text of line 2 of fld 1 to "this is <i>italics</i>" set the textStyle of token -4 of line -1 of fld 1 to italic put the htmlText of fld 1 into msg
On Tue, Oct 1, 2013 at 6:30 AM, Kay C Lan <lan.kc.macm...@gmail.com> wrote: > New stack, 1 fleld, in the msg box: > > set the text of word 1 of line 1 of fld 1 to "<b>" > set the htmlText of word 2 to -1 of line 1 of fld 1 to "<b>This is bold > text</b>" > put the htmlText of fld 1 into msg > > The output I get is: > > <p><b><b> This is bold text</b></p> > > So you can either selectively set the text or the htmlText or you can use > the &xx; codes and set just the htmlText. > > As always, a couple of ways to skin the cat. > > HTH > > > > > On Tue, Oct 1, 2013 at 6:17 AM, Peter Haworth <p...@lcsql.com> wrote: > >> I'm setting the htmltext of a field but sections of the text in it which >> include html tags need to be displayed as regular text (including the html >> tags) instead of formatted html. >> >> Any ideas? >> >> Pete >> lcSQL Software <http://www.lcsql.com> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode