Copy Button Examples
Can be added directly to headings, text, tables and more.
Headings
Heading 1
markdown
### Heading 1 <CB />
plain
Heading 1
Heading 2 Badge
markdown
### Heading 2 <Badge type="tip" text="Badge" /> <CB />
plain
Heading 2
Heading 3 Badge
markdown
### Heading 3 <CB /> <Badge type="tip" text="Badge" />
plain
Heading 3
Heading 4 Badge
markdown
### Heading 4 <CB anchor /> <Badge type="tip" text="Badge" /> {#custom_anchor_2}
plain
custom_anchor_2
Heading 5
markdown
### Heading 5 <CB text="Custom Text" />
plain
Custom Text
Text
Lorem ipsum dolor sit amet.
markdown
Lorem ipsum dolor sit amet. <CB />
plain
Lorem ipsum dolor sit amet.
Some text. some inline code
markdown
Some text. `some inline code` <CB />
plain
Some text.
Some text. some inline code
markdown
Some text. `some inline code` <CB prev />
plain
some inline code
Some text. some inline code
markdown
Some text. `some inline code` <CB all />
plain
Some text. some inline code
Table
Key | Tag Used | Result |
---|---|---|
inline code | <CB /> | inline code |
text string | <CB /> | text string |
text string inline code | <CB /> | text string |
text string inline code | <CB prev /> | inline code |
text string inline code | <CB all /> | inline code text string |
Demos
The plugin is used extensively on these pages:
If you have a live demo, let us know and we will post it here...
See the CopyButton Documentation for <CB />
tag usage.