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

FR: Button to copy code blocks to clipboard #1064

Closed
IanButterworth opened this issue Nov 20, 2023 · 2 comments
Closed

FR: Button to copy code blocks to clipboard #1064

IanButterworth opened this issue Nov 20, 2023 · 2 comments

Comments

@IanButterworth
Copy link

It's quite standard for code blocks to have copy to clipboard buttons, it'd be nice to have it on places like the julialang.org website.

@tlienart
Copy link
Owner

See https://franklinjl.org/demos/#010_clipboard_button_for_code_blocks

A button to copy code is typically done in javascript and as such is left for the user to handle. The example above shows how to use a common JS package to do that, there are other ways including raw JS: https://www.phind.com/search?cache=iko4c6uizwpacuq7ceix74e7.

@IanButterworth
Copy link
Author

Makes sense. Thanks! JuliaLang/www.julialang.org#1970

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants