pub fn format_text_by_path(path: &Path, input: &str) -> StringExpand description
Formats text content in memory according to the file type inferred from path matching VS Code save behavior.
§Arguments
&Path- File path used to determine the target formatter.&str- Raw UTF-8 file content.
§Returns
String- Formatted text content (or unchanged input when no-op, unsupported, or syntactically invalid).