pub fn highlight_line_for_diff(
line: &str,
language: Option<&str>,
) -> Option<Vec<(Style, String)>>Expand description
Highlight a single line of code for diff preview. Returns a vector of (style, text) segments, or None if highlighting fails.