I need a small solution in order to select all text in a textbox when I click on it which I have predefined in the source. This text can have multiple lines and can be PHP, Jquery, HTML or whatever what kind of text.
The idea behind is that I can click on it and with Ctrl-C I can move the selection to my clipboard in order to put in my IDE (editor).
It should look something like this: http://jsfiddle.net/NNqyF/
That demo is not able to give multiple lines and any kind of code or text.
If anyone has got a solution it would be really appriciated.
Thanks in advance for any help!