Skip to main content

highlight_span

Function highlight_span 

Source
pub fn highlight_span(start: u32, length: u32, name: &str) -> Option<TextSpan>
Expand description

A span painting length bytes from start in the role a highlight name maps to, or None where the name has no role and the run is left in the body ink.