Copy code to clipboard button

Hi there - noob question. How can I add a “copy-to-clipboard” button in the top right corner of a code section (```)


Hi @antineutrinos , one way would be to use the Prism Highlighter Plugin: GitHub - trilbymedia/grav-plugin-prism-highlight

Hope that might fit your needs🙂

1 Like

Thanks a lot @paulhibbitts. Exactly what I needed.

1 Like

Hey @paulhibbitts - Do you know if prism-highlight has also an option to wrap long lines ?

Hi @antineutrinos , no I do not know that - might be more info in the Plugin docs.