Shogo Oshima

—Web Developer

Sketches Blog About
GitHub X

Others

Jan 16, 2023

Getting beautiful syntax highlighting with Rehype Pretty Code

Others

If you're writing a technical blog, syntax highlighting is a must. So in this post, let's set it up. The package we'll use is a rehype plugin called Rehype Pretty Code, which does its highlighting with Shiki. Prism is the famous name in syntax highlighting, but this time I went…