Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a copy button to the code block #1211

Open
musnows opened this issue Dec 24, 2024 · 0 comments
Open

Add a copy button to the code block #1211

musnows opened this issue Dec 24, 2024 · 0 comments
Assignees
Labels
feature New feature request
Milestone

Comments

@musnows
Copy link

musnows commented Dec 24, 2024

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

@musnows musnows added the feature New feature request label Dec 24, 2024
@shuashuai shuashuai self-assigned this Dec 26, 2024
@shuashuai shuashuai added this to the v1.4.5 milestone Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants