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 a "copy content" button to code blocks #17

Closed
abey79 opened this issue Oct 11, 2023 · 0 comments · Fixed by #18
Closed

Add a "copy content" button to code blocks #17

abey79 opened this issue Oct 11, 2023 · 0 comments · Fixed by #18
Labels
enhancement New feature or request

Comments

@abey79
Copy link
Contributor

abey79 commented Oct 11, 2023

Having a "copy content" button appearing on hover over code blocks (typically top right) is quite common on modern web template (e.g. in our own docs at Rerun). It would be great to have something similar in egui_commonmark.

image

This is currently covered by having the code block text selectable, but this feels a bit clunky. (It's nice to have though, in cases the user wants to copy only part of the text.)

image

Related to:

@lampsitter lampsitter added the enhancement New feature or request label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants