Just to be clear, this is the one that I am looking for – https://prismjs.com/plugins/copy-to-clipboard/
Hi @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.
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 for the idea.
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.
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 ?. 🙂
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.