television_utils::syntax

Function compute_highlights_for_path

Source
pub fn compute_highlights_for_path(
    file_path: &Path,
    lines: Vec<String>,
    syntax_set: &SyntaxSet,
    syntax_theme: &Theme,
) -> Result<Vec<Vec<(Style, String)>>>