Skip to content

Add a copy button to the code block #1211

Closed
Closed
@musnows

Description

@musnows

Is your feature request related to a problem? Please describe

The code blocks on the Answer site do not support copying now. When I try to select all using Ctrl+A, the entire HTML will be selected, and I cannot select only the content of the code blocks. This results in users having to manually hover over the text of the code block with the mouse and then copy it, causing inconvenience to the user if they want to copy the content of the code block.

Describe the solution you'd like

It would be even better if a copy button could be added to the code block.

Describe alternatives you've considered

If there is a plugin that can do this, please let me know. Thank you


Related to https://meta.answer.dev/questions/D18Z2/?commentId=10070000000011379

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions