Assistance with prettier-ignore (or start/end) #15261
Unanswered
wchisenski
asked this question in
Q&A
Replies: 1 comment
-
Quick UpdateI've found that using one of the following gets me what I need. If someone has a better path forward, please let me know in the comments. Otherwise, I'll come back and close this in the next day or two.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello community,
I just installed the Prettier extension this morning in VS Code (vs. using the built-in HTML formatter). Please see the before and after examples below.
Before Prettier
After Prettier Formatting
<!-- prettier-ignore -->
comment, the formatting completely fails with the following error. SyntaxError: Unexpected closing tag "check". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (195:60)readonly
property within the input, on a specific condition utilizing the<check>
tag from Fat Free Framework, so I thought a simple prettier-ignore comment would make the parser simply skip the next line (or block/tag)?<check>
tag outside of theinput
.What am I doing wrong here? Any assistance would be great, thank you!
Walter
Beta Was this translation helpful? Give feedback.
All reactions