Copying Code-Fenced Text

Hi,

Could code fencing be enhanced to provide a Copy to Clipboard feature, currently, a CTRL+A selects all of the text in the whole window, not just the text in the fenced area when it’s focused.

Perhaps something like this in the bottom right and corner?

image

3 个赞

Discourse 核心很久以前就添加了“复制到剪贴板”功能。无需安装插件即可使用。

在您的站点设置中搜索 show copy button on codeblocks

3 个赞

您好 Daniela,

哦,我不知道这一点,我现在感觉有点傻 ;]。感谢您告知我,它效果非常好。

此致,
Andreas。

1 个赞