Is it possible to ignore html tags in prettier
I really like prettier to format my html files but one thing I don't like is prettier formatting specific tags.
For example, I have the following code line:
where I really don't want prettier to format it to:
I know I could do
<!-- prettier-ignore -->
but then again, I have quite a lot of meta
and input
tags in my header which I don't want prettier to format so I would copy past the comment many times, which kinda sound stupid.
So I was asking myself, is it possible to define a setting in the prettier configuration file to ignore specific html tags like meta
or input
?0 Replies