Skip to content
React Libraries
On this page

Code highlighting

Highlight source code and create annotated or animated walkthroughs.

Choose a library or tool

6 options in this category.

Code Hike

Library / tool

Tools for combining code and explanatory content.

Good for
Building interactive code walkthroughs and technical storytelling pages.

Expressive Code

Library / tool

A framework for richly rendered code blocks.

Good for
Publishing code examples with highlighting, annotations, and presentation features.

Lowlight

Library / tool

Syntax highlighting that produces a virtual syntax tree.

Good for
Rendering highlighted code through a custom virtual-DOM integration.

Shiki

Library / tool

A syntax highlighter using TextMate grammars and editor-style themes.

Good for
Rendering code samples with coloring similar to a code editor.

Shiki Magic Move

Library / tool

Tools for animating changes between highlighted code blocks.

Good for
Showing how code evolves during a tutorial or presentation.

Speed Highlight

Library / tool

A syntax-highlighting library for code snippets.

Good for
Adding highlighted code samples to webpages and documentation.

Keep exploring

Browse all categories →