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
When I write html I add my vim modeline to the end of the file. For example
index.html
<!DOCTYPE html><html><head><title>Title</title><metacharset="UTF-8"><metaname="viewport" content="width=device-width, initial-scale=1"/>
<metaname="color-scheme" content="dark light"></head><body><p>This is a test</p></body></html><!-- vim: set tabstop=2 shiftwidth=2 softtabstop=2 noexpandtab: -->
Using tidy on this snippet breaks it though by moving the vim line into the body:
tidy --indent yes --wrap 78 --tidy-mark no index.html
<!DOCTYPE html><html><head><title>
Title
</title><metacharset="UTF-8"><metaname="viewport" content="width=device-width, initial-scale=1"><metaname="color-scheme" content="dark light"></head><body><p>
This is a test
</p><!-- vim: set tabstop=2 shiftwidth=2 softtabstop=2 noexpandtab: --></body></html>
I have checked the parameters for tidy and I can't find anyway to stop it moving my comment. Thoughts?
The text was updated successfully, but these errors were encountered:
When I write html I add my vim modeline to the end of the file. For example
index.html
Using tidy on this snippet breaks it though by moving the vim line into the body:
tidy --indent yes --wrap 78 --tidy-mark no index.html
I have checked the parameters for tidy and I can't find anyway to stop it moving my comment. Thoughts?
The text was updated successfully, but these errors were encountered: