Formatting of HTML Closing Tags #88
Answered
by
JohnathonKoster
KennedyTedesco
asked this question in
Q&A
-
Hi there! This project is awesome and really promising. Kudos! Currently, the HTML code is being formatted in a way that results in this indentation: <div
class="flex px-4 sm:justify-end sm:px-6"
>
<x-filament::button
class="mb-4 mr-2 last:mr-0 md:mb-0"
color="success"
icon="heroicon-m-plus-circle"
icon-position="before"
>
Button
</x-filament::button>
</div> I want to place the <div
class="flex px-4 sm:justify-end sm:px-6">
<x-filament::button
class="mb-4 mr-2 last:mr-0 md:mb-0"
color="success"
icon="heroicon-m-plus-circle"
icon-position="before">
Button
</x-filament::button>
</div> |
Beta Was this translation helpful? Give feedback.
Answered by
JohnathonKoster
Dec 31, 2023
Replies: 1 comment 1 reply
-
This can be accomplished by using Prettier's Here is what that might look like (just a sample file): {
"bracketSameLine": true,
"plugins": [
"prettier-plugin-blade",
"prettier-plugin-tailwindcss"
],
"overrides": [
{
"files": [
"*.blade.php"
],
"options": {
"parser": "blade"
}
}
]
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
KennedyTedesco
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be accomplished by using Prettier's
bracketSameLine
option (https://prettier.io/docs/en/options.html#bracket-line).Here is what that might look like (just a sample file):