#Prism JS Add Copy Butto

4 messages · Page 1 of 1 (latest)

gray tinsel
#

Trying yo add a copy button to a Prism.js code block. The docs are very basic and aren't working. Anyone know how it works?

#

I checked the prism.js file, and it has a link to the download page. I had to add the copy code plugin and download a new file.

When I did that, the code block disappears and reverts to just text.

gritty berry
#

Hey j - did you get this fixed yet?

#

Are you doing this on Node with a templating engine like ejs or are you doing this on the front end in vanilla js or with a framework? let me know which and I'll code you up an example app 🙂