Individual lines and ranges, e.g. {1,3-5}.
Line Highlighting
1 min readStableBeginner
Highlight specific lines of code with {1,3-5} after the language identifier. Highlighted lines get a distinct background.
Quick Start
Highlight a single line.
TypeScript
TypeScript
interface User {
id: string
name: string
}Adding Options
Use a range to highlight a block of lines.
TypeScript
TypeScript
interface User {
id: string
name: string
email: string
role: 'admin' | 'user'
}Advanced
Combine multiple individual lines and ranges, plus a file title.
models/user.ts
TypeScript
type Status = 'active' | 'inactive'
export interface User {
id: string
name: string
email: string
status: Status
}Options
{lines}number[]Related pages
Was this page helpful?