plugin-icon

Code Click to Copy

作者:treeflips·
Copies and tags automatically to clipboard with customizable tooltips.
评级
4.7/5
版本
1.0.1
活跃安装
800
最后更新
Aug 7, 2025
Code Click to Copy

Simple plugin that automatically copies content in <pre> and <code> tags to clipboard (when clicked). Other plugins out there do the same but create a little [COPY] button that you have to aim for. Mine doesn’t require any aiming, just click anywhere on the code block and it copies the whole thing. Customizable hover tooltip lets you know it’s copied.

For sites sharing code-commands, this plugin will save users time from having to highlight and copy-paste bits of text back and forth. It’s especially helpful for large globs of code that scroll off-screen, or when copying on your mobile phone. I’ve added more features to make it more helpful.

Features: * Easy aim – click anywhere on text block to copy entire text, no need to aim for tiny text or clipboard icon. * Tooltip text customization – change tooltip text. * Tooltip color options – customize tooltip background and text colors. * Tooltip hover custom CSS – completely restyle the tooltip hover. * Tooltip function custom CSS – apply tooltip function to other CSS classes. Allowing copy function on any content block, not only code blocks.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.8.3
这个插件是可用的下载,适用于您的站点。