You the man. So light and simple. My only change was to add a pseudo element to display a copy to clipboard icon in the corner of the code blocks, because otherwise people have no idea its copyable until they hover. Using pointer-events:none on the icon allows it to not interfere with the click functionality.
Maybe something like that could be an option or even just a filer hook for people to optionally enable. Anyway, cheers!
- You must be logged in to reply to this review.