Open maxitg opened 3 years ago
So ideally it should work like the WFR documentation? I.e. only allow click-to-copy for the input
@daneelsan, yes, but it won't be possible to do it on GitHub directly.
I meant generating this:
(*In[] :=*) test[]
(*Out[] =*) "This is a test"
It would be great to modify what is/isn't copied....
@daneelsan, yes, I think that's better than omitting them entirely. It will also allow us to keep images the same.
The problem
Since Github now supports click-to-copy for code blocks, it became somewhat inconvenient that the input/output code blocks contain
In[] :=
andOut[] =
prefixes that should not be copied.It might be better to remove them altogether. It will make it less clear where the inputs/outputs are, but it needs to be tested to see whether it's more important than click-to-copy ability.
Also, it might require regenerating pictures without the labels for consistency.
Alternative solutions
It would be ideal to have it copy the code without the prefixes while displaying prefixes nonetheless. But that's likely too difficult or not possible.