Hacker GitHub

← All repos

shikijs/shiki

View on GitHub ↗ ★ 13,919 TypeScript

A beautiful yet powerful syntax highlighter

5 mentions on Hacker News by 5 people: 0 stories, 5 comments · first 2020-09-04 · latest 2023-03-16

Mentions per year 5 mentions · busiest year 2021 (2)
20082026
  1. Looks like Shiki: https://github.com/shikijs/shiki If you "inspect" the elements with the mouseovers, you can see they statically compiled the TS definition into the HTML. I guess it probably uses the same APIs to read the types VSCode…
    comment by nawgz · 2023-03-16 · in Introducing react.dev
  2. …looked into the slow startup time for shiki and it was mostly from parsing JSONC, not WASM: https://github.com/shikijs/shiki/issues/439 .
    comment by milkbikis · 2023-03-07 · in Shiki Syntax Highlighter
  3. Right? I'm 99% sure this thing uses https://github.com/shikijs/shiki
  4. The tool on GitHub: https://github.com/shikijs/shiki You can import any of the grammars or themes from VSCode that are not currently in the project. I found this because I wanted to reuse the same grammar for CUE on GitHub for my…
  5. …of baseline. [0]: https://shiki.matsu.io/ [1]: https://github.com/adambisek/string-pixel-width [2]: https://github.com/shikijs/shiki/blob/master/packages/render...