I'm using Prism.js to do some syntax highlighting. Now Prism.js generates a <code>
div with lots of children divs
to do highlighting and placing the actual code (or text) as inner texts of those divs.
My question is, using jQuery how can I get the rendered <code>
tag highlighted (as in selected), similar to the manual mouse drag and selecting of texts inside a textbox.
I have tried $(el).select();
but it did not work.