3

I want to develop an editor which can make the text bold, italics and underline and create an equivalent HTML for it. I have somethhing like this in my mind:

enter image description here

When the user clicks on save, I should get HTML data.

For example , if user writes:Hello World

then I should get <!Doctype HTML><body>Hello <b><i>World</i></b></body></html>

What are my options here? are there any previous projects like this or do i have to make this from scratch?

R4chi7
  • 853
  • 1
  • 11
  • 36
Mr_Hmp
  • 2,474
  • 2
  • 35
  • 53
  • see [this question](http://stackoverflow.com/questions/4283755/android-question-implementing-a-rich-text-editor) – vikki Aug 05 '13 at 05:42

1 Answers1

2

You can use Character Style sub-classes of Android for the styling of your texts. Then use HTML class to get the HTML equivalent of your text. I'm currently developing one and those are the ones I used. You may also check out https://github.com/commonsguy/cwac-richedit for an example on how you could use Character Style for editing. :)

meborda
  • 391
  • 3
  • 9