Automattic / Automattic/syntaxhighlighter
Would be great to make an easy way to implement 'copy to clipboard'
- Dominant language
- CSS
- Stars
- 251
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for the plugin!
The only thing that I would hope you could imporve is an easy option to add an option for users to copy the code to clipboard by adding some kind of 'copy' button that is implemented in some other code highliter plugins.
Since the code is displayed with many divs and html tags it is not so easy to implement 'copy to clipboard' since the 'raw' code is not present on page...
Thanks
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting how the plugin renders highlighted code into divs and HTML tags, then trace where frontend controls for code blocks could be added. Confirm how the rendered markup can expose the original code and define done as a visible copy button that copies the complete snippet to the clipboard.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, html
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100