Title: Add a copy button
Last modified: February 28, 2024

---

# Add a copy button

 *  Resolved [Flint](https://wordpress.org/support/users/flintstoned/)
 * (@flintstoned)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-a-copy-button/)
 * Hi,
   Thanks for this wonderful plugin. I’m using it for some time now but I do
   wonder how I can add a copy button to the code snippets for easy copying. Looking
   forward to your reply,

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-a-copy-button/#post-17460369)
 * Hi there. This is an [existing feature request](https://github.com/westonruter/syntax-highlighting-code-block/issues/192)
   on GitHub. You can see from a [comment](https://github.com/westonruter/syntax-highlighting-code-block/issues/192#issuecomment-1447422633)
   on that issue that I wrote a [proof of concept extension plugin](https://gist.github.com/westonruter/d99067473ad799deb099334a70bdf336)
   you could use to implement this.
 *  Thread Starter [Flint](https://wordpress.org/support/users/flintstoned/)
 * (@flintstoned)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-a-copy-button/#post-17481109)
 * Thanks for the quick follow up! 
   I have implemented the code, and works as expected
   😉 Needs a little finetuning for visual appealing but that I can (try) myself.
   Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add a copy button’ is closed to new replies.

 * ![](https://ps.w.org/syntax-highlighting-code-block/assets/icon.svg?rev=3406002)
 * [Syntax-highlighting Code Block (with Server-side Rendering)](https://wordpress.org/plugins/syntax-highlighting-code-block/)
 * [Support Threads](https://wordpress.org/support/plugin/syntax-highlighting-code-block/)
 * [Active Topics](https://wordpress.org/support/plugin/syntax-highlighting-code-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntax-highlighting-code-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntax-highlighting-code-block/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Flint](https://wordpress.org/support/users/flintstoned/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/add-a-copy-button/#post-17481109)
 * Status: resolved