A simple Wordpress Plugin that allows you to copy the content of code blocks with the click of a button!
Installing the plugin will add a copy button to the top right of your code fields. The result will look like this:
In combination with some other plugins like Code Syntax Block and some custom styling as described in the "Customization" section the end result could look something like this:
To install this plugin download it as a zip from this repository: And then upload it in the plugin tab of your WordPress installation: Lastly activate the plugin.
To install this plugin clone it into the /wp-content/plugins directory and activate it in plugins tab of your WordPress installation.
In case you need a different styling you can do so by adding styles to the classes .copy-container
and .copy-button
. They are integrated in the following HTML structure:
<div class="copy-container">
<button class="copy-button">Copy</button>
<!-- block content -->
</div>
For any questions feel free to reach out to [email protected].
===
License: GPLv2 or later