Sublime Forum

Tidy HTML enhancement

#1

Would it be possible to add an extra option that controls the layout of selected tags.
I was thinking of the ones that are often short lines such as navigation using list items in unordered lists.
Currently Tidy HTML formats them thus:-

                <nav>
                    <ul class="nav nav-tabs">
                        <li>
                            <a href="index.html">HOME</a>
                        </li>
                        <li>
                            <a href="about.html">ABOUT</a>
                        </li>
                        <li>
                            <a href="writing.html">WRITING</a>
                        </li>
                        <li>
                            <a href="styling.html">STYLING</a>
                        </li>
                        <li>
                            <a href="links.html">LINKS</a>
                        </li>
                    </ul>
                </nav>

I would prefer this:-

                <nav>
                    <ul class="nav nav-tabs">
                        <li><a href="index.html">HOME</a></li>
                        <li><a href="about.html">ABOUT</a></li>
                        <li><a href="writing.html">WRITING</a></li>
                        <li><a href="styling.html">STYLING</a></li>
                        <li><a href="links.html">LINKS</a></li>
                    </ul>
                </nav>

Maybe there could be a list of tags to format in a compact manner rather like the current “// Enable support for new HTML5 tags”?

0 Likes