Page 1 of 1

Is there a way to enumerate format of a text field?

Posted: Sun Nov 04, 2012 9:35 pm
by tomcam
I'd like to export the formatted contents of a text field into different text formats. For example, I'd like to be able to export bold text in different formats depending on the setting, so it might look like either of these:

Code: Select all

<strong>bold text</strong>

[b]bold text[/b]
Or it might be exported as plain text.

Is there some way I can programmatically determine the formatting (including paragraph formatting, etc.) of the contents of a text field?

Re: Is there a way to enumerate format of a text field?

Posted: Sun Nov 04, 2012 9:41 pm
by Dixie
look at styledText in the dictionary

Dixie

Re: Is there a way to enumerate format of a text field?

Posted: Mon Nov 05, 2012 12:06 am
by dunbarx
Hi.

Also look at the "htmlText". This may be closer to what you asked for, or at least more directly accessible.

Craig Newman