Better support for adding bold and italic text inline

There needs to be a better way to handle bold and italics fonts inline in text.

What I want is to be able to pull text strings from an XML file or database, and have a way to specify that certain characters should be either bolded or italicized, without having to do it manually.

For example, I pull “In the novel Moby Dick, Melville tells the story of…” and have it render as:
In the novel Moby Dick, Melville tells the story of…

Possible method is to use HTML tags in the strings:

In the novel _Moby Dick_, Melville tells the story of...

In lieu of HTML tags, possibly something else? [import]uid: 17827 topic_id: 29217 reply_id: 329217[/import]

You can write the HTML text out to a local file, then render it in a webView. [import]uid: 19626 topic_id: 29217 reply_id: 117517[/import]

Thanks, robmiracle. I will need to look into this. It seems like more work, but it might be worth it.

I will need to take a look at the sample code, but the API doc doesn’t give a lot of information. Just opened up a bunch of questions for me, but the two big ones are:

  1. How do you style the text? Do you use CSS? Do you have the HTML file load a separate CSS file or do you put the CSS inline in the HTML file? (Because the latter would make writing a local file much more difficult.)
  2. Does it need to be a complete HTML file, with all the / tags? Or can it just be a snippet, like a

tag with the text? [import]uid: 17827 topic_id: 29217 reply_id: 117971[/import]