I want an interaction that allows the user to first select a cursor tool, and then use it to select some text and apply a distinct attribute to it, select another cursor tool, apply a different attribute to another part, and then submit the selection/ attribute data. A use case would be an interaction where the user must identify the subject, verb and complement of a displayed sentence using three different cursor/attribute tools. The end result would be something like this but any attribute would do as long as it is distinct. The text itself should not be editable. When done the user would submit and their selections evaluated.
<p><span style="background-color:lightseagreen;">The fox</span> <span style="background-color:pink;">jumped</span> <span style="background-color:yellow;">over the fence.</span></p>
Is this possible?
A more complex example with more complex syntax would require the student to identify the core structure in bold and then identify the complete S,V and C.
<p><span style="background-color:lightseagreen;"><b>The fox</b> with the broken foot</span> <span style="background-color:pink;"><b>jumped</b> painfully</span> <span style="background-color:yellow;"><b>over the fence.</b></span></p>