This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Add copy button to code snippets #27
Comments
Does anyone have any ideas about where to place the copy to clipboard button per code block? |
@LeoDog896 this would probably be done here denobyexample/www/routes/[id].tsx Line 223 in 2240ce9
|
Sorry about the bad wording -- more of a design question, but that helps too! |
Ah okay, that makes more sense. I would place it in the top right of the box because that seems to be the standard. |
I think this requires some design work. @hashrock (sorry for the ping), are you aware of a deno-style copy svg? I wasn't able to find any official deno projects with a copy button. |
I think we can use this svg: https://github.com/denoland/doc_components/blob/main/icons.tsx#L91 |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, it's not easy to copy code snippet from the example. When I'm trying to copy code by selecting it with mouse, this copies both the description and the code snippet. I think it would be great to add copy button to the code snippets. As alternative solution, we can adjust layout to make copying code using mouse easier.
The text was updated successfully, but these errors were encountered: