Archived topic
Enable Copy Button option for the text in Preformatted block
1 reply · Started by Pradeep on April 11, 2023
Hello Team,
I would like to enable copy button option for the text in preformatted block. I need this because my readers usually copy commands from my technical post.
It would be easy for them just click on copy button to copy entire command.
Can you please let me know how can I enable this feature. I am using latest WordPress , generatepress theme along with latest premium plugins.
Regards,
Pradeep Kumar
Hi Pradeep,
You would need a JS script or a third-party plugin for this.
Perhaps any of these could help:
https://wordpress.org/plugins/copy-the-code/
https://codepen.io/tag/copy-to-clipboard