4

Often I'd like to compile code from tex.stackexchange or other sites to my machine and play around a bit with it. There are so many great answers here; there is so much great code in stack overflow, emacs beta, askubuntu and so on.

But copying code from the website isn't really supported, at least it could be easier.

Can we get a new menu item "in" the "right-click-menu": if the mouse points to a code area, the right-click-menu offers "copy this code" ?!

5

1 Answer 1

1

Ok, thanks to the comment of Werner, I read the discussion about missing support for copying. There were unnamed security concerns. Thinking about it and not being an IT guy, a function to copy code (which is not LaTeX) to a readers clipboard doesn't sound like a horrible threat, but however, you can obviously do something evil with it, especially if the code copied isn't the code which is displayed.

Thanks to the link provided by percusse I copied the script behind the link, installed the greasemonkey addon to firefox, imported the script there and now can copy without scrolling. But I limited it to tex.stackexchange.com.

Thank you very much.

(And I thought I had a good idea. Sigh. Once in a lifetime.)

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .