When I write code in a Markdown cell to display it without executing it, there used to be syntax highlighting in Notebook 1. This is no longer the case with Notebook 2.0.
Example:
~~~js
let viz = import("npm:geoviz")
~~~
Is there any other solution?
It appears as coloured syntax for me both in 2.0 and 1.0.
I think I might know what it is.
If I change the standard library from 2026 to the old 2018 one (cube icon in top right), the syntax colouring goes. So keeping with the new standard lib should be the solution here.