sphinx-copybutton icon indicating copy to clipboard operation
sphinx-copybutton copied to clipboard

Sphinx "inline" line numbers?

Open mgeier opened this issue 4 years ago • 3 comments

Just a little heads-up:

If and when https://github.com/sphinx-doc/sphinx/pull/7879 is merged, those line number will probably have to be removed from the copied text.

mgeier avatar Jun 27 '20 18:06 mgeier

Ah good to know, thanks for the heads up

choldgraf avatar Jun 27 '20 19:06 choldgraf

Can confirm, sphinx-copybutton copies line numbers. It would be really nice to have both line numbers and copy functionality at the same time. Adding span.linenos {user-select: none} helps for manual copying, but not for automatic copying, I'm afraid.

rixx avatar Aug 15 '21 20:08 rixx

I address this issue in this Pull Request 138.

bicarlsen avatar Sep 21 '21 06:09 bicarlsen