Skip to content

Commit

Permalink
Provide basic experimental formatter which supports invalid XML
Browse files Browse the repository at this point in the history
  • Loading branch information
angelozerr committed Apr 20, 2022
1 parent 1f5fc69 commit d2e7623
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,43 @@
"markdownDescription": "Enable/disable ability to format document. Default is `true`.",
"scope": "window"
},
"xml.format.experimental": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable/disable experimental formatter. Default is `false`.",
"scope": "window"
},
"xml.format.maxLineWidth": {
"type": "integer",
"default": 80,
"markdownDescription": "Max line width. Default is `80`.",
"scope": "window"
},
"xml.format.grammarAwareFormatting": {
"type": "boolean",
"default": true,
"markdownDescription": "Use Schema/DTD grammar information while formatting. Default is `true`.",
"scope": "window"
},
"xml.preferences.preserveSpace": {
"type": "array",
"default": [
"xsl:text",
"xsl:comment",
"xsl:processing-instruction",
"literallayout",
"programlisting",
"screen",
"synopsis",
"pre",
"xd:pre"
],
"items": {
"type": "string"
},
"markdownDescription": "Element name for preserve spaces",
"scope": "window"
},
"xml.format.emptyElements": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -578,4 +615,4 @@
}
]
}
}
}

0 comments on commit d2e7623

Please sign in to comment.