Skip to main content

code_language

Function code_language 

Source
pub fn code_language(source: &str, block_start: usize) -> Option<String>
Expand description

A fenced code block’s language for display: its info string, trimmed, or None when there’s no fence or the fence carries no language. The trimmed text is what a frontend labels the box with; code_info_span is what an edit replaces.