On Jan 18, 11:46 am, Mircea <i...@amsterdamsat.com> wrote: > Yes, I want to be able to select a part of the text and add a span to > it. Can this be done?
It's a very difficult problem to solve in the general case. Imagine this markup: <p>It's a <strong>very difficult problem</strong> to <em>solve in the general case</em>.</p> And then you want to select the text "difficult problem to solve". You would essentially need to transform that markup to something like this: <p>It's a <strong>very </strong> <span class="highlight"> <strong>problem</span> to <em>solve</em> </span> <em>in the general case</em>.</p> Is this doable? Yes. Easy? Far from it. -- Scott