next.js
455fce36 - Highlight key tokens in Make route params static fix card

Commit
23 days ago
Highlight key tokens in Make route params static fix card Extends the snippet schema with an optional `parts` array so a single snippet line can contain inline-highlighted segments. The renderer maps each part to a `<span data-snippet-highlight>` child; the existing line-level `highlight` flag still works when `parts` is absent. The highlight CSS selector is broadened from `[data-snippet-line] [data-snippet-highlight]` (compound) to a descendant selector so both shapes pick up the per-card color. Applied to the `Make route params static` card so only `generateStaticParams()` and the entire `[{ slug: "…" }]` return-array literal are emphasized, keeping `export async function`, the leading whitespace, and the trailing braces in the default body color. Made-with: Cursor
Author
Parents
Loading