add copy button
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-04-24 12:34:28 +02:00
parent b0112c06d6
commit 468b5ecc70
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 6 additions and 0 deletions

View file

@ -1,4 +1,6 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<script src="//unpkg.com/highlightjs-copy/dist/highlightjs-copy.min.js"></script>
<script>
hljs.addPlugin(new CopyButtonPlugin());
hljs.highlightAll();
</script>

View file

@ -2,3 +2,7 @@
rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css"
/>
<link
rel="stylesheet"
href="//unpkg.com/highlightjs-copy/dist/highlightjs-copy.min.css"
/>