You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for all the work on this project, Prettier team!
Description
For HTML specifically, this is probably related to better inline support, & #845 (comment) but I figured the implementation for this would be slightly more straight forward as the explicit marking of HTML may make it more likely a html node be fully represented in one string. Many editors (including VSCode) also already highlight these sections by default with their respective syntax highlightings. Whilst prettier's HTML parser is still too strict to deal with interpolated tags (e.g. <$foo></$foo>, other parsers (like the one used in VSCode's builtin HTML formatter), can handle it.
For other languages, I guess it would depend more on their parsers, but I foresee that we could probably either use some sort of placeholder-replacement system, or just pass the whole string as is & YOLO.
Thanks for all the work on this project, Prettier team!
Description
For HTML specifically, this is probably related to better
inline
support, & #845 (comment) but I figured the implementation for this would be slightly more straight forward as the explicit marking ofHTML
may make it more likely a html node be fully represented in one string. Many editors (including VSCode) also already highlight these sections by default with their respective syntax highlightings. Whilst prettier's HTML parser is still too strict to deal with interpolated tags (e.g.<$foo></$foo>
, other parsers (like the one used in VSCode's builtin HTML formatter), can handle it.For other languages, I guess it would depend more on their parsers, but I foresee that we could probably either use some sort of placeholder-replacement system, or just pass the whole string as is & YOLO.
Prettier 1.16.4
PHP Plugin 0.10.2
# Options (if any): --use-tabs --php-version 8.2 --brace-style 1tbs
Input:
Output:
(The same)
Expected behavior:
The HTML should be formatted.
The text was updated successfully, but these errors were encountered: