An open API service indexing awesome lists of open source software.

https://github.com/rayiumir/copycode-js

Simple and Lightweight Library for Copy Codes
https://github.com/rayiumir/copycode-js

clipboard clipboardjs copy copy-paste copy-to-clipboard

Last synced: about 1 year ago
JSON representation

Simple and Lightweight Library for Copy Codes

Awesome Lists containing this project

README

          






CopyCode JS


# CopyCode JS

Simple and Lightweight Library for Copy-paste Codes

# How to use

Add this two file in tag body.

Add JQuery:

```html

```
Add copycode.js:

```html

```

CSS:

```css
.precode .copy {
position: absolute;
margin: -50px 0px 0px 10px;
}

.copy {
border: 0;
padding: 5px 10px;
border-radius: 8px;
background-color: #1b344d;
color: #fff;
}

.fa-check {
color: green;
}
```

# Settings

In using copycode.js you deal with two tags `pre` and `code`. for set the button, use style for button settings and it is compatible in any editor that supports these two tags.

# Screenshot and Demo

Demo: https://rayiumir.github.io/copycode-js/



CopyCode JS