4 ms·
Would be nice to see Intellisense-style hover tooltips on code-blocks someday (via referencing a `.d.ts` or `.ts` file). There might be some minimalist way to
by zalo 5y ago
Would be nice to see Intellisense-style hover tooltips on code-blocks someday (via referencing a `.d.ts` or `.ts` file).
There might be some minimalist way to get Monaco into read-only mode for it...
- eyelidlessness 5y agoThis 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. 1: https://www.npmjs.com/package/remark-shiki-twoslash https://www.npmjs.com/package/remark-shiki-twoslash