detect_file_language

Function detect_file_language 

Source
pub fn detect_file_language(path: &Path) -> Option<String>
Expand description

Detect programming language from file path (filename or extension). Returns a language name as a string, supporting many more formats than the Language enum. This is useful for display purposes and handling non-parseable file types.