gist

How to add copy button in gist?


I need to add a copy button in gist code area like shown in the screenshot: enter image description here

I've tried to ask chatgpt and search answer on Google, but it seems like no one asked this earlier. May be here someone knows how to solve my problem.


Solution

  • It seems that it is not possible currently without external tools, since it cannot be done with just pure Markdown. This is something that GitHub should implement on their end, and for some reason they haven't implemented it for Gists, only for the main github.com.

    However, consider using one of these external tools: