-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
91 lines (60 loc) · 3.64 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
=== Simple Copy Code ===
Contributors: programonaut
Tags: code, copy
Requires at least: 4.7
Tested up to: 6.0.1
Stable tag: 6.0
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
A simple Wordpress Plugin that allows you to copy the content of code blocks with the click of a button!
=== Description ===
Installing the plugin will add a copy button to the top right of your code fields. The result will look like this:
![image](https://user-images.githubusercontent.com/47224024/183262668-4817d697-05fb-4f7d-bbb9-e2f0163f3526.png)
In combination with some other plugins like [Code Syntax Block](https://github.com/mkaz/code-syntax-block) and some custom styling as described in the "Customization" section the end result could look something like this:
![image](https://user-images.githubusercontent.com/47224024/183262747-141a61bd-13a9-4a0f-ac4d-41fd0c82d97f.png)
## Installation (GitHub - ZIP)
To install this plugin download it as a zip from this repository:
![image](https://user-images.githubusercontent.com/47224024/183262579-14227b62-ed1d-4df1-af4a-80caa17ce283.png)
And then upload it in the plugin tab of your WordPress installation:
![image](https://user-images.githubusercontent.com/47224024/183262608-0b97261e-a7c9-49f9-9604-feaa606744ef.png)
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:
``` html
<div class="copy-container">
<button class="copy-button">Copy</button>
<!-- block content -->
</div>
```
For any questions feel free to reach out to [[email protected]](mailto:[email protected]).
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](https://user-images.githubusercontent.com/47224024/183262668-4817d697-05fb-4f7d-bbb9-e2f0163f3526.png)
In combination with some other plugins like [Code Syntax Block](https://github.com/mkaz/code-syntax-block) and some custom styling as described in the "Customization" section the end result could look something like this:
![image](https://user-images.githubusercontent.com/47224024/183262747-141a61bd-13a9-4a0f-ac4d-41fd0c82d97f.png)
## Installation (GitHub - ZIP)
To install this plugin download it as a zip from this repository:
![image](https://user-images.githubusercontent.com/47224024/183262579-14227b62-ed1d-4df1-af4a-80caa17ce283.png)
And then upload it in the plugin tab of your WordPress installation:
![image](https://user-images.githubusercontent.com/47224024/183262608-0b97261e-a7c9-49f9-9604-feaa606744ef.png)
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:
``` html
<div class="copy-container">
<button class="copy-button">Copy</button>
<!-- block content -->
</div>
```
For any questions feel free to reach out to [[email protected]](mailto:[email protected]).
=== Frequently Asked Questions ===
No questions yet!
=== Changelog ===
No changes yet!
=== Upgrade Notice ===
No upgrade notice yet!