prettier-vscode
prettier-vscode copied to clipboard
Add support for thymeleaf custom html tags/blocks
trafficstars
Is your feature request related to a problem? Please describe.
I develop spring boot with thymeleaf engine using VSCode+Redhat Java. in thymeleaf has new element blocks like <th:block> (https://stackoverflow.com/a/68204022/6404439)
my prettierrc.json
{
"$schema": "https://json.schemastore.org/prettierrc",
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"bracketSameLine": true,
"bracketSpacing": true,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"endOfLine": "lf",
"quoteProps": "as-needed",
"htmlWhitespaceSensitivity": "css",
"singleAttributePerLine": true,
"overrides": [
{
"excludeFiles": [
"*.min.js",
"*.min.css",
"*.min.html",
"*.min.scss"
],
"files": [
"*.js",
"*.css",
"*.sass",
"*.html",
"*.md",
"*.ts"
],
"options": {
"semi": true
}
},
{
"files": [
"*.ejs",
"*.html"
],
"options": {
"parser": "html"
}
}
]
}
Describe the solution you'd like
I want format the html using Prettier VSCode Plugin.
Additional context
error while formatting custom html tags <th:block/>
successful without custom blocks