doctype declaration negatively affecting code formatting
Hello -
I've searched across multiple forums for a solution to this issue, but was unable to come across anything.
I am using Dreamweaver CC 2017 and I'm attempting to apply code formatting. I've discovered that including the doctype html declaration tag in the HTML file messes with the formatting rules, specifically with closing tags. I've already reviewed my code formatting settings, and they are as they should be.
In example 1 below, the formatting is working properly. In example 2, the closing tags are not aligning with the opening tags properly (this is the issue I'm having; assume ... is the code within head tags).
Example 1:
<div id="container">
<p>My content goes here.</p>
</div
Example 2:
<!doctype html>
...
<div id="container">
<p>My content goes here.</p>
</div>
Notice how the div tags don't align vertically? Is there any way I can have the code formatting tool work properly without having to delete and re-add the doctype declaration every time? Thanks!