Hi aryanrajseo,
why would you do this ? the pre
container is only a wrapper which holds the content to highlight. the highlighting itself is done via EnlighterJS which hides the pre
container.
best regards, Andi
I am using Clipboard.js to add a copy option which adds a svg copy icon to give an option to copy the code. <pre><code>This is code. Copy this.</code></pre>
clipboard works only when code is under <code></code>
but when i add this after EnlighterJS pre tag it adds the svg icon as CODE and not the icon. Do you have any plan to add a clipboard in it?
this is the intended behaviour – everything within the <pre>
block is marked to be highlighted. you can re-configure clipboard.js to work with other html elements but its difficult to integrate because you may have to change EnligterJS codebase.
copy-to-clipboard is a requested feature (projected for EnlighterJS 3.1/3.2) using the new Clipboard API
Thanks a lot for adding this feature in the upcoming version.
Thanks for your hard work.