Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/2nthony/saika-code-block-buttons

Code block buttons for Saika above version `2.13.x`.
https://github.com/2nthony/saika-code-block-buttons

Last synced: about 2 months ago
JSON representation

Code block buttons for Saika above version `2.13.x`.

Awesome Lists containing this project

README

        

# saika-code-block-buttons

> Code buttons for Saika

Please consider starring the project to show your ❤️ and support.

[![CircleCI](https://badgen.net/circleci/github/evillt/saika-code-block-buttons?icon=circleci)](https://circleci.com/gh/evillt/saika-code-block-buttons/tree/master)
[![License](https://badgen.net/npm/license/saika-code-block-buttons)](./LICENSE)
[![donate](https://badgen.net/badge/support%20me/donate/f2a)](https://donate.evila.me)

You can visit the official showcase in [saika codeBlockButtons](https://saika.dev/#/reference/options#codeblockbuttons-badge-contentsaika-2130-).

## Usage

Load this via `` tag:

```html
<!-- Load this after saika.js -->
<script src="https://cdn.jsdelivr.net/npm/saika-code-block-buttons">
```

This is exposed as `window.saikaCodeBlockButtons`:

```js
new Saika({
codeBlockButtons: [saikaCodeBlockButtons.copyCode]
})
```

## Buttons

### copyCode

Copy the code in code block.

Will add more in future...

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

**saika-code-block-buttons** © [evillt](https://github.com/evillt), Released under the [MIT](./LICENSE) License.

Authored and maintained by **EVILLT** with help from contributors ([list](https://github.com/evillt/saika-code-block-buttons/contributors)).

> [evila.me](https://evila.me) · GitHub [@evillt](https://github.com/evillt) · Twitter [@evillt](https://twitter.com/evillt)