jupyter/qtconsole

Syntax highlighting broken with multiline inputs

impact27 opened this issue · 1 comments

To reproduce:
jupyter qtconsole
Then paste a multiline statment, e.g.:

"""
s
"""
a = 1

This results in:
Screenshot 2022-06-14 at 15 42 42
Only the first line is highlighted

This probably happens because we're using Pygments to highlight single lines. And I think that's the only way to use Pygments interactively (i.e. not for entire documents).