p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Feature-request: copy-as-rtf, copy-selection-as-rtf

Open dhowe opened this issue 8 years ago • 13 comments

Support copy sketch (or selection) to allow pasting into other documents with syntax highlighting, etc.

This is a really common task for teachers: code an example, paste it into a powerpoint or keynote doc...

dhowe avatar Sep 24 '17 06:09 dhowe

great idea! i don't know how easy or hard this is to do, or if codemirror already supports this.

catarak avatar Sep 26 '17 18:09 catarak

I wanted to second this request (even though it was mine to begin with)... ;)

this is absolutely crucial for those of us making presentation slides (keynote, powerpoint, etc) from sketches...

https://discuss.codemirror.net/t/include-textmarkers-in-copy-paste-operation/1054

dhowe avatar Sep 17 '18 09:09 dhowe

i hear that! a workaround for now could be taking a screenshot of the code in a code editor, and then adding alt text to the image that is the code.

catarak avatar Sep 17 '18 16:09 catarak

any movement on this? really important for teaching

dhowe avatar Aug 30 '20 09:08 dhowe

There's hasn't been any movement on this and and I hear that it's important to you. I just added the help wanted label so that someone else might pick it up!

Someone was able to get RTF copy in CodeMirror working, see https://discuss.codemirror.net/t/rich-text-copy/695/4

Also, it's not ideal, but one workaround would be to download your sketch and then open it in a different text editor. I just tried this with VSCode and then copying the code to Keynote and it kept the formatting.

catarak avatar Sep 02 '20 18:09 catarak

I understood the issue, as I am new in open source contribution I would like to take this issue. Can it be assigned to me? @catarak

ash97531 avatar Dec 15 '21 04:12 ash97531

@ash97531 feel free to work on this issue!

catarak avatar Dec 16 '21 21:12 catarak

where can I ask doubts regarding codebase or if I stuck somewhere? It will be helpful for me to work on this feature. And medium or platform to discuss?

ash97531 avatar Dec 23 '21 05:12 ash97531

@catarak Can you please verify

ash97531 avatar Jan 27 '24 05:01 ash97531