Format-Css
August 3, 2026 ยท View on GitHub
SYNOPSIS
Cmdlet that formats CSS content using AngleSharp.
SYNTAX
Content (Default)
Format-Css -Content <string> [-OutputFile <string>] [<CommonParameters>]
File
Format-Css -Path <string> [-OutputFile <string>] [<CommonParameters>]
DESCRIPTION
Cmdlet that formats CSS content using AngleSharp.
EXAMPLES
EXAMPLE 1
Format-Css -Content "body{margin:0}"
PARAMETERS
-Content
CSS content to format.
Type: String
Parameter Sets: Content
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: False
-OutputFile
Optional path to write the formatted CSS.
Type: String
Parameter Sets: Content, File
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Path
Path to a CSS file to format.
Type: String
Parameter Sets: File
Aliases: File
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String
OUTPUTS
System.String
RELATED LINKS
- None