-
Notifications
You must be signed in to change notification settings - Fork 747
Closed
Description
It seems that using the "PowerShell Session" highlighter won't pick up multiline constructs, and renders anything after the first line as output.
For instance:
PS> python -m doctest `
> -o DONT_ACCEPT_TRUE_FOR_1 `
> -o ELLIPSIS options.txt
Renders like this in https://pygments.org/demo/
I initially thought it might be the backtick as the line continuation character, but it seems that any multiline construct is not picked up properly, for example:
PS> $Params = @{
> Height = 50
> Width = 50
> Depth = 50
> Name = 'My Widget'
> ID = '10dbe43f-0269-48b8-96cb-447a755add55'
> }
Or
PS> ls |
> grep "python"
On my command line emulator (Windows Terminal), it looks something like this with PowerShell Core:
On the old Windows PowerShell, with conhost.exe, it looks like this:
Metadata
Metadata
Assignees
Labels
No labels