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?

3개의 좋아요

클립보드 복사 기능은 이미 오래전에 Discourse 코어에 추가되었습니다. 이를 위해 플러그인을 설치할 필요가 없습니다.

사이트 설정에서 show copy button on codeblocks을 검색해 보세요.

3개의 좋아요

다니엘라님,

아, 그걸 몰랐네요. 이제 좀 어색한 기분이 드네요 ;]. 알려주셔서 감사합니다. 완벽하게 작동하네요.

감사합니다,
안드레아스.

1개의 좋아요