A tool for getting HTML Markup Code from rich texts

Want a dedicated tool For Achieving the below-mentioned result fast

Edit and Work visually to make a styled text or importing from MS-Word or RTF and get it's markaup HTML(the text with inline coding)

What I want to get is something similar :

<p class="home">
  <Span style="xxxxx">
    blah blah blah
  </span>
</p>

Although it is HTML, but I want just the HTML's source of the text want to get it with a fast way

Any Tools/Tricks is appreciated

thanks


In Word you can save as HTML, which will produce something not entirely unlike your example.

Later versions of Word produce better HTML (early versions produced usable but unreadably repetitive and overcomplicated HTML) so you might want to clean it up

Some people like to create both HTML and RTF/DOC/DOCX from a Plain Text Markup using something like Pandoc