-
Notifications
You must be signed in to change notification settings - Fork 29
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
Code block should be easily copyable. #24
Comments
Huddle Chat Notes:
Ideas:
|
It'd be nice to use the same "editor"/styles/etc throughout the dev site and handbooks, though.
💯 , otherwise I think a lot of people wouldn't feel confident that it worked. Changing the button text seems good, but maybe also change the button bg color, so folks don't miss it. |
With the switch in #44, the line numbers on code blocks are not selectable anymore: Is that enough to mark this as fixed (assuming that PR is merged), or do we want to add in a That could be a copy button to each code block, or convert to a textarea to manually copy. Personally I dislike the "switch to textarea" function, since it usually looses my highlight location, but there's also been feedback that some people edit the code in the textarea before copying it. |
I think having a I like the icon used at https://jestjs.io/docs/mock-function-api#mockfnmockcalls, but IMO it should always be visible (related #46) I also dislike the "switch to textarea" technique. |
Even better than an icon, though, would be just |
Discussed in #6
Originally posted by StevenDufresne May 22, 2022
Right now, if you copy the code block, you also copy the line numbers making it difficult to copy and paste code into your environment.
#6 (comment) has some implementation ideas
The text was updated successfully, but these errors were encountered: