typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

[Feature Request]: copy code button in code fences

Open gilbertohasnofb opened this issue 5 years ago • 10 comments

Mark Text has a neat feature for easily copying code from code fences: when hovering above a code fence, a button appears in the top right corner for copying the full content of the fence:

image

image

I think this feature would be a good addition to Typora too.

gilbertohasnofb avatar Nov 01 '20 23:11 gilbertohasnofb

Mark Text has a neat feature for easily copying code from code fences: when hovering above a code fence, a button appears in the top right corner for copying the full content of the fence:

image

I think this feature would be a good addition to Typora too.

yes, same feeling, If it does, it will improve efficiency

Cqxstevexw avatar Nov 08 '20 11:11 Cqxstevexw

Agree, it will be helpful.

catmade avatar Nov 12 '20 16:11 catmade

I also think that a copy button attached to code blocks would be a good enhancement

saulgudmon avatar Feb 13 '22 12:02 saulgudmon

I concur, as a multi license subscriber I would love to see this implemented as well.

JayToltTech avatar Nov 12 '22 16:11 JayToltTech

I really need that feature, for now I'm deciding to buy or not the license :) I' m using trial version now.

monocodes avatar Mar 09 '23 09:03 monocodes

Curious question. If I wanted to look into contributing this change where would I go? I can find a number of theme focused repositories one the typora repository list but nothing like typora or core or anything like that. Could someone please point me in the right direction here.

stephan-rayner avatar Jul 06 '23 11:07 stephan-rayner

This feature will greatly facilitate a certain group of people who use Typora as a notebook for some commonly used codes, such as entering a commonly used container, running a command compiled by Bazel, or even a long string of options like entering QEMU, or configuring a proxy. At this time, one-click copy will improve their efficiency. Thank you.

KonohaVio avatar Aug 01 '23 07:08 KonohaVio

I am also looking for this feature, especially when exporting my document to HTML. This way I could easily embed scripts instead of having them separately (when sending said document to others)

derekcarlos avatar Mar 06 '24 07:03 derekcarlos