-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
from scikit-hep/pyhf#721
a simple way is to add a configuration to allow for the last line to be copied or skipped. This should handle both cases. Additionally, could add a configuration indicating if the project wants to use >>> and ... so then you can just not copy lines that don't start with that.
In order to be a bit more flexible about how code snippets can be copied, it is true that there is no enforced consistency so that as of right now, the entire code-block is copied. This issue requests two separate things:
- The ability to toggle on/off whether the last line in a code-block should be copied (this doesn't necessarily assume a language)
- The ability to toggle on/off whether lines without
>>>or...should be copied (note: this one assumes python) - Perhaps in the future, similar to above, the ability to toggle whether lines without
>or$should be copied
sadielbartholomew, s-weigand and lukelbd
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed