Add a copy button anywhere and simply copy it into the clipboard.
You can copy to clipboard: code snippets, special symbols, discount codes, or anything which you want.