How to add copy button in gist?

180 Views Asked by At

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.

1

There are 1 best solutions below

2
jolammi On BEST ANSWER

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: