Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "copy to clipboard" to code blocks in docs #278

Open
1 task
GuySartorelli opened this issue Oct 18, 2023 · 2 comments
Open
1 task

Add "copy to clipboard" to code blocks in docs #278

GuySartorelli opened this issue Oct 18, 2023 · 2 comments

Comments

@GuySartorelli
Copy link
Member

GuySartorelli commented Oct 18, 2023

We're using prismjs for syntax highlighting of code blocks.
There is a plugin for it that adds a copy to clipboard button: https://prismjs.com/plugins/copy-to-clipboard/

Notes

Acceptance criteria

  • There is a "copy to clipboard" button for all fenced code blocks
@maxime-rainville
Copy link

My inclination would be to put them everywhere. I don't really see what the horrible downside would be if someone accidentally copied a folder structure.

@GuySartorelli
Copy link
Member Author

No horrible downside, just seems like weird UX to have a button to copy something when there's no value in copying it. But I don't feel strongly.

@GuySartorelli GuySartorelli self-assigned this Jun 19, 2024
@GuySartorelli GuySartorelli removed their assignment Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants