Hi there - noob question. How can I add a "copy-to-clipboard" button in the top right corner of a code section (```)
Thanks.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Solved by Paul Hibbitts View solution
Hi there - noob question. How can I add a "copy-to-clipboard" button in the top right corner of a code section (```)
Thanks.
Hi @antineutrinos , one way would be to use the Prism Highlighter Plugin: https://github.com/trilbymedia/grav-plugin-prism-highlight
Hope that might fit your needs🙂
Thanks a lot @paulhibbitts. Exactly what I needed.
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.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 95 | 14 hours ago | ||
| 1 | 61 | 19 hours ago | ||
| 0 | 47 | 1 day ago | ||
| 6 | 356 | 5 days ago | ||
| 3 | 44 | 6 days ago |