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 Me gusta

La función “copiar al portapapeles” se añadió al núcleo de Discourse hace mucho tiempo. No es necesario instalar un plugin para ello.

En la configuración de tu sitio, busca show copy button on codeblocks .

3 Me gusta

Hola Daniela,

Oh, no lo sabía y ahora me siento un poco tonto ;]. Gracias por hacérmelo saber, funciona a la perfección.

Saludos cordiales,
Andreas.

1 me gusta