Re:I spent some time exploring how to improve the UX of code...
by eyelidlessness on Friday May 07, 2021 @05:48PM
(#27081239)
This exists! But with a slightly different set of libraries than the highlighter used by the post author: remark-shiki-twoslash[1]. Shiki tokenizes using the same language definitions as VSCode, Twoslash uses the same language service.
There might be some minimalist way to get Monaco into read-only mode for it...