shogun icon indicating copy to clipboard operation
shogun copied to clipboard

Automatic copy of the selected code snippet to clipboard

Open vigsterkr opened this issue 5 years ago • 9 comments

there are several code snippets at https://www.shogun.ml/examples/latest/index.html and it would be great that if a codesnippet is selected it would be automagically copied to the user's clipboard.

this is basically a jquery hack

vigsterkr avatar Feb 26 '20 07:02 vigsterkr

@vigsterkr Would it be fine If we add a copy button near every code snippet and If the user clicks on it, the code snippet is copied?

krutikabapat avatar Feb 26 '20 11:02 krutikabapat

@krutikabapat i mean that's necessary for sure, but there are way to solve this with JS that the selection gets copied on your clipboard....

vigsterkr avatar Feb 26 '20 11:02 vigsterkr

Okay, got it :)

krutikabapat avatar Feb 26 '20 11:02 krutikabapat

If this is still open, let me work on it

boladjivinny avatar Mar 19 '20 00:03 boladjivinny

it is still open

vigsterkr avatar Mar 19 '20 07:03 vigsterkr

@vigsterkr Can you direct me on where to find the related source code for the website?

boladjivinny avatar Mar 19 '20 08:03 boladjivinny

https://github.com/shogun-toolbox/shogun/tree/develop/doc/cookbook

vigsterkr avatar Mar 19 '20 08:03 vigsterkr

Hey, I have created a PR for this issue please review.

chinmay81098 avatar Mar 19 '20 09:03 chinmay81098

is this issue still open for work? @vigsterkr

rajpratyush avatar Feb 20 '21 14:02 rajpratyush