Skip to content

A simple Wordpress Plugin that allows you to copy the content of code blocks with the click of a button!

License

Notifications You must be signed in to change notification settings

programonaut/simple-copy-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Wordpress Plugin that allows you to copy the content of code blocks with the click of a button!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published