How do Notebooks highlight Python syntax?

You’ll want to look at CodeMirror. According to here, Jupyter uses that.

1 Like