question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy button for Code blocks in Gist comments

See original GitHub issue

Description

The main site (github.com) provides a copy button for code blocks, but this is not the case for Gist.

Screenshot

No response

Example URL

https://gist.github.com/junegunn/8b572b8d4b5eddd8b85e5f4d40f17236#gistcomment-1926696

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kidonngcommented, Feb 24, 2022

I forgot why I didn’t reply in time, but here I am:

Codecopy still exists, so the same reason for closing still applies:

zenorocha/codecopy@a2dea68/dist/manifest.json#L52

Sadly, not available for the moment: https://github.com/zenorocha/codecopy/issues/71

There’a also a userscript that works on gists, so twice the reason: Mottie/GitHub-userscripts/wiki/GitHub-copy-code-snippet

That works on Gists, but duplicate with native ones on main site:

image

Workaround exists though.

image

That said I would still like to see this being part of RGH. We are not adding a branch new feature but extending the feature from main site to Gists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a 'copy code to clipboard' button to your blog's code blocks
In this tutorial, I will show you how to add a 'copy code' button to code blocks in your blog that will copy...
Read more >
Docosaurus: How can you hide Copy button next to the code ...
HOW TO DISABLE THE COPY BUTTON FOR ALL CODE BLOCKS ... This will create a copy of the code-generator of code block inside...
Read more >
embed code snippet reference in markdown
Currently it is possible to copy a link to a snippet of code from within Azure DevOps by highlighting a few lines of...
Read more >
Features - HackMD
Press the share button on the top right of the menu and click Copy button to copy the note URL ... Code blocks:...
Read more >
9 Different Ways to Embed Code in Medium | by Abhay Parashar
Now Simply Click on the share button and copy the Code Link. Paste the link in the medium link section.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found