Title: Add Copy code button
Last modified: October 20, 2019

---

# Add Copy code button

 *  Resolved [PrajwalDesai](https://wordpress.org/support/users/prajwaldesai/)
 * (@prajwaldesai)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/)
 * Is there an option to add copy function to the code ?. For example, you hover
   over the code and it shows Copy option.
    -  This topic was modified 6 years, 7 months ago by [PrajwalDesai](https://wordpress.org/support/users/prajwaldesai/).

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

 *  Thread Starter [PrajwalDesai](https://wordpress.org/support/users/prajwaldesai/)
 * (@prajwaldesai)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/#post-12046960)
 * Just to be clear, this is the one that I am looking for – [https://prismjs.com/plugins/copy-to-clipboard/](https://prismjs.com/plugins/copy-to-clipboard/)
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/#post-12047650)
 * Hi [@prajwaldesai](https://wordpress.org/support/users/prajwaldesai/), it’s not
   a current feature of the plugin but I like the idea. Will add it to the to-do
   list and try to add in a future plugin update. Thank you for the feedback.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/#post-12090818)
 * Just to follow up with this, the next version of the plugin adds the “copy to
   clipboard” plugin for Prism.js. Can be enabled/disabled in the plugin settings.
   Thanks again [@prajwaldesai](https://wordpress.org/support/users/prajwaldesai/)
   for the idea.
 *  Thread Starter [PrajwalDesai](https://wordpress.org/support/users/prajwaldesai/)
 * (@prajwaldesai)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/#post-12093672)
 * Thanks [@specialk](https://wordpress.org/support/users/specialk/), a copy button
   will make the plugin even best. Do you know how can we change the font type once
   we insert any code or text between pre, code </pre </code ?
    -  This reply was modified 6 years, 7 months ago by [PrajwalDesai](https://wordpress.org/support/users/prajwaldesai/).
    -  This reply was modified 6 years, 7 months ago by [PrajwalDesai](https://wordpress.org/support/users/prajwaldesai/).
    -  This reply was modified 6 years, 7 months ago by [PrajwalDesai](https://wordpress.org/support/users/prajwaldesai/).
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/#post-12095675)
 * Normally when using either Prism.js or Highlight.js, the library provides the
   font for any highlighted code snippets. To override that, you could use some 
   custom CSS that targets whichever code snippets, etc.
 *  Thread Starter [PrajwalDesai](https://wordpress.org/support/users/prajwaldesai/)
 * (@prajwaldesai)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/#post-12095848)
 * I tried changing the font type in the .css files but it didn’t work. I am working
   on it..
 * Any idea when can we see the plugin update ?. 🙂
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/#post-12096027)
 * Yeah it can be tricky finding the correct selectors. My guess would be to target`
   language-php` or whatever class you are using for your snippets.
 * Next version of the plugin should be available in time for WP 5.3, which is scheduled
   for the 12th of this month, last time I checked.

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

The topic ‘Add Copy code button’ is closed to new replies.

 * ![](https://ps.w.org/prismatic/assets/icon-256x256.png?rev=1521267)
 * [Prismatic](https://wordpress.org/plugins/prismatic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/prismatic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/prismatic/)
 * [Active Topics](https://wordpress.org/support/plugin/prismatic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prismatic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prismatic/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/add-copy-code-button/#post-12096027)
 * Status: resolved