-
Notifications
You must be signed in to change notification settings - Fork 462
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
Easy way to copy code. #4
Comments
You could add a "copy to clipboard" button with the ZeroClipboard library, but personally I don't think it's that compelling of a feature. |
@GeoffYoung When looking around for solutions I came across ZeroClipboard as well. I like the idea of going with a solution that selects the text and prompts the user to hit Ctrl+C to copy it. It is unfortunate JavaScripts has limitations with the clipboard. ZeroClipboard is nice and gets around these limitations, though I'd prefer to avoid a solution that uses flash. I'll start working on Ctrl+C solution this weekend. |
I made a sample to make sure selecting text wouldn't be unreasonably difficult. I can pretty it up a little and make a PR. |
Thanks @GeoffYoung The PR looks good. |
It would be a good idea if there were an easy way to copy the code from the source window. Perhaps a little button? Cheers.
The text was updated successfully, but these errors were encountered: