-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Copy code snippets #280
Comments
I don't think that this is on the agenda, since you can only achieve it by using Flash (javascript isn't allowed to access the clipboard). You probably need to do a custom implementation with something like ZeroClipboard. |
Perhaps it could be done with the Clipboard API. Not sure why it's useful though. |
@LeaVerou browser support is not very good at the moment and probably never will be (because of privacy concerns)... |
It’s an existing API, so the privacy concerns would have been voiced in the standards group that created it, since implementors always participate in them. Current bad browser support is not an issue, as the feature is an enchancement. As long as the icon/link is hidden on non supporting browsers, we're good. |
As far as I know: the existing API mostly handles catching the already fired copy event, not triggering it yourself. You can edit the copied text, but you can't initiated the |
This showed up recently: https://github.com/zenorocha/clipboard.js. |
+1 for clipboard.js ;) |
This issue is fixed with those PRs merged. |
Is there a feature to copy code snippets rather than highlighting all.
The text was updated successfully, but these errors were encountered: