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 code to clipboard' button for code blocks #449

Closed
byaruhaf opened this issue Oct 5, 2022 · 3 comments
Closed

Add a 'copy code to clipboard' button for code blocks #449

byaruhaf opened this issue Oct 5, 2022 · 3 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@byaruhaf
Copy link

byaruhaf commented Oct 5, 2022

The swift book has a number of code blocks to complement the explanations.
To improve the experience for the reader we should add a “copy code” button to make it simple for them to copy and paste the code.

@amartini51
Copy link

This is enhancement request for docc which is used by TSPL — transferring it to the Swift-DocC repository.

@amartini51 amartini51 transferred this issue from apple/swift-book Oct 5, 2022
@ethan-kusters ethan-kusters transferred this issue from apple/swift-docc Oct 5, 2022
@mportiz08 mportiz08 added the enhancement New feature or request label Oct 6, 2022
@natikgadzhi
Copy link

Related: apple/swift-docc#737

Both in code blocks — if someone wanted to make two improvements with one PR ;)

@mportiz08 mportiz08 added the duplicate This issue or pull request already exists label Nov 9, 2023
@mportiz08
Copy link
Contributor

Thanks for the suggestion @byaruhaf. I believe we are already tracking this enhancement request in #274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants