Skip to main content

format_css

Function format_css 

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

Formats CSS (.css, .wxss) matching VS Code Prettier 3.7.4 (singleQuote: true, tabWidth: 2).

§Arguments

  • &str - Raw CSS stylesheet text.

§Returns

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