Choose correct syntax lexer #1013
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With #1012 I looked a bit deeper. I think we should apply the following rules for selecting the
languagelabel (incode-blockstatements, but also inrunrecordinstances).bash,python, ...)consolefor the latter it is important to keep in mind that this is expecting a live sessions log, meaning a rogue comment char (
#) can never appear without a prompt at the start of the line. SO any use ofneeds to become
This would somewhat "break" the copy-button configuration, because it would prevent people from copying only executable commands. At the moment, all lines with a leading
$are copied on click, which works nicely for copy-pasting.This should not be a problem. The lines would still be "executable". C&P'ed into a terminal they would also be "just comment".
I looked into this again. I agree that it would be annoying to have the copy button copy comments. However, it seems that a straightforward regex adjustment in the button config can avoid that.
The more I think about prepending any command with
$the more I think it should be done.Consider this example:
We, or a reader could not tell whether this is console input (a supplied comment), or console output (a produced text with
#prefix).