Skip to main content

format_less

Function format_less 

Source
pub fn format_less(input: &str) -> String
Expand description

Formats Less (.less) matching VS Code Prettier 3.7.4 (singleQuote: true, tabWidth: 2).

§Arguments

  • &str - Raw Less stylesheet text.

§Returns

  • String - Formatted Less text, or unchanged input if syntax errors occur.