Skip to content
React Libraries
On this page

Explain code visually

Highlight source code and create annotated or animated walkthroughs.

Options for this task

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.

Before you decide

Try a small, realistic example. Check the runtime, accessibility, maintenance, and license requirements for the features you need.

Browse code highlighting →

Explore more tasks →