Example for copying to Clipboard using Javascript with user input and syntax highlighting (mostly using Prism)
When creating 'clickable text' USE onClick="copyToClipboard(document.getElementById(this.id).innerHTML)"
By using 'this.id' you don't need to always change for matching ids!
- copy to clipboard with javascript (requires user input)
- copy several bash cmds at once
- syntax highlighting
- OS detection
See: Prism.js and SyntaxHighlightGenerator