Add a modern approach to copy code to clipboard with code language display.

Installs: 172

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1



v0.1.0-beta.16.1 2021-04-04 06:59 UTC

This package is auto-updated.

Last update: 2021-04-09 02:29:26 UTC


License Latest Stable Version

A Flarum extension. Use Clipboardjs to add copy code approach with code language display to your Flarum. You can choose 7 different button styles, like GitHub, SegmentFault, etc.

Supports 47 common languages by default: .properties, apacheconf, bash, bbcode, c, csharp, css, cpp, coffeescript, diff, django, docker, dockerfile, git, go, html, ini, java, javadoc, js, json, less, lua, makefile, markdown, nginx, objectivec, perl, php, powershell, properties, python, python-repl, regex, ruby, rust, sass, scss, sql, stylus, swift, typescript, vim, visual-basic, vue, xml, yaml.


Install manually with composer:

composer require ffans/clipboardjs


composer update ffans/clipboardjs