Skip to content

HTMLFormatConfiguration ​

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.html.HTMLFormatConfiguration.html

ts
interface HTMLFormatConfiguration {
    contentUnformatted: string;
    endWithNewline: boolean;
    extraLiners: string;
    indentHandlebars: boolean;
    indentInnerHtml: boolean;
    insertSpaces: boolean;
    maxPreserveNewLines: number;
    preserveNewLines: boolean;
    tabSize: number;
    unformatted: string;
    wrapAttributes: "auto" | "force" | "force-aligned" | "force-expand-multiline";
    wrapLineLength: number;
}

contentUnformatted ​

  • 类型: string

endWithNewline ​

  • 类型: boolean

extraLiners ​

  • 类型: string

indentHandlebars ​

  • 类型: boolean

indentInnerHtml ​

  • 类型: boolean

insertSpaces ​

  • 类型: boolean

maxPreserveNewLines ​

  • 类型: number

preserveNewLines ​

  • 类型: boolean

tabSize ​

  • 类型: number

unformatted ​

  • 类型: string

wrapAttributes ​

  • 类型: auto | force | force-aligned | force-expand-multiline

wrapLineLength ​

  • 类型: number

Released under the MIT License.