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

こんにちは、ダニエラさん

ああ、知りませんでした。少し間抜けな気分です ;]。お知らせいただきありがとうございます。うまくいきました。

敬具
アンドレアス

「いいね!」 1