CssPrettyFormatter Class
Writes an indented CSS text, to read or compare style sheets: each rule and each declaration is written on its own line, indented by its depth, and each selector of the selector list of a style rule is written on its own line.
public sealed class CssPrettyFormatter : CssFormatterRemarks
An empty block is written on the line of its prelude (a {}).
- Inheritance
CssFormatterCssPrettyFormatter
Constructors
| Name | Description |
|---|---|
| CssPrettyFormatter() |
CssPrettyFormatter()
CssPrettyFormatter.cspublic CssPrettyFormatter()No documentation is available.
Properties
| Name | Description |
|---|---|
| Indentation | The string written for each level of indentation. The default is two spaces. |
| MaxIndentationDepth | The maximum number of indentation levels: the content of the deeper blocks is indented as the content at this depth. The default is 64, which bounds the size of the output of deeply nested input (the indentation of each line would grow with the depth). |
| NewLine | The line separator. The default is "\n". |
Indentation
CssPrettyFormatter.csMaxIndentationDepth
CssPrettyFormatter.csThe maximum number of indentation levels: the content of the deeper blocks is indented as the content at this depth. The default is 64, which bounds the size of the output of deeply nested input (the indentation of each line would grow with the depth).
public int MaxIndentationDepth { get; init; }