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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tomcam
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10
Joined: Fri May 20, 2011 7:24 am

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

Post by tomcam » Sun Nov 04, 2012 9:35 pm

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?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

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

Post by Dixie » Sun Nov 04, 2012 9:41 pm

look at styledText in the dictionary

Dixie

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Mon Nov 05, 2012 12:06 am

Hi.

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

Craig Newman

Post Reply