Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.68 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.68 KB

Simple Copy Code

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:

image

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:

image

Installation (GitHub - ZIP)

To install this plugin download it as a zip from this repository: image And then upload it in the plugin tab of your WordPress installation: image Lastly activate the plugin.

Installation (GitHub - Clone)

To install this plugin clone it into the /wp-content/plugins directory and activate it in plugins tab of your WordPress installation.

Customization

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