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.

Add copy button to code blocks

See original GitHub issue

It would be nice to have a button to copy the entire content of code blocks, like the one supported in GitHub markdown:

pip install dvclive

Captura de Pantalla 2022-05-09 a las 16 45 59

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
shchekleincommented, May 9, 2022

the biggest question I had thinking about this - should be copy outputs as well:

$ dvc plots show
Plots file is ....

# Now run ...
$ dvc plots diff
Some output

what should we copy in this case?

1reaction
jorgeorpinelcommented, May 25, 2022

Would need to be applicable to some CLI blocks specifically indeed. Doesn’t sound like an easy implementation. Triple click does the trick too but I’m not sure how many people are aware.

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 >
Add Copy-to-Clipboard Button to Code Blocks with Vanilla JS
However, it lacks one vital feature — an easy way to copy a code block to the clipboard. I decided to document my...
Read more >
How to add a copy button to markdown code blocks using ...
To create this copy button, we need to append a button to each code block and have that button copy the code into...
Read more >
How to Add Copy to Clipboard Buttons to Code Blocks in Hugo
CodeCopy is a browser extension for Chrome and Firefox that adds copy buttons to code blocks on many websites that are likely to...
Read more >
How to add the "Copy" button to code blocks in Docusaurus
You will have to add some code to your Docusaurus project, as seen below. Under static/js , create a file called code-block-buttons.js with...
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