---
title: "Code Diff"
description: "An edit shown as a colored diff — removed lines collapse in red, added lines expand in green."
---
import { InstallCommand } from "/snippets/install-command.jsx";
## Install
That writes one file: `compositions/code-diff.html`.