Open dbitouze opened 3 years ago
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
Is your feature request related to a problem? Please describe. No
Describe the solution you'd like Adding (necessary) lines to what is copied.
More precisely, I'd like to use
sphinx-copybutton
for a LaTeX FAQ. It is common for such a FAQ:\begin{document}
and\end{document}
),\documentclass{article}
, many occurrences of\usepackage{...}
, etc.),\begin{document}
and\end{document}
.For instance, instead of:
only:
is given (with a mention to the necessary
xcolor
package).But if the user just copy and paste the latter and compile it, he will go into troubles. On the other hand, giving the whole code for each example would be tedious to read.
So what could be nice is to display only:
and the actual copied text would be:
Additional context
I'm aware this could be considered as unsafe but maybe a pop up could warn the user the actual content of what has been copied.