Copy Code to clipboard

Started by Hondo, January 02, 2014, 05:06:15 PM

Previous topic - Next topic

Hondo

Hi,
is the a way to copy the marked code to clipboard?
Andreas

kat

See this code (Which isn't php)

for n=1 to 10
print n
next n


If you click "Select", above it, it'll select the entire code.

Right-click>copy.

Is that what you mean? (You were a bit vague)

Hondo

No it isn't
I want to copy the code to clipboard just when I click on the link to mark the code.
(1 click instead of 3 clicks)

kat

You want clicking on "Select" to select the code and copy it to the clipboard?

I think you'd need to speak with Microsoft support, for that. Or, perhaps, your browser's support team?

I doubt there's any php code that could do that, coz it wouldn't know, once it's selected, what you want to do with it.

'course, someone might come in, later, and prove me totally wrong. ;)

ZerK

its possible using flash, the easier version using javascript is not allowed by most browsers for security reasons... it only works on IE.

Advertisement: