MSHTML Writer -- one remaining hurdle...
There's one remaining hurdle for this free html editor: -- multi-paragraph-length CSS-style-based formatting. Let me illustrate what I mean.
<p>this is paragraph 1 xxxxxxxxx</p>
<p>xxxxx this is paragraph 3</p>
where the x's represent the current selected texts. To format this selection to a Font of say "Courier New" under a CSS-style-based formatting, the source needs to be changed to:
<p>this is paragraph 1 <span class=style1>xxxxxxxxx</span></p>
<p><span class=style1>xxxxx</span> this is paragraph 3</p>
where style1 contains the "Courier New" CSS style.
The difficult part is figuring out the fragments of selected and unselected text on the first and last paragraphs, and inserting a span tag. This is the hurdle I'm talking about. Any hint(s) on how to go about solving this problem would be greatly appreciated.
Get the latest MSHTML Writer here: