Function detect_syntax

Source
pub fn detect_syntax(path: impl AsRef<Path>) -> Option<Syntax>
Expand description

Detect syntax from file extension.