Home Download Buy Blog Forum Support

Tidy HTML enhancement

Tidy HTML enhancement

Postby pjaj on Sat Feb 09, 2013 3:10 pm

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:-

Code: Select all
                <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:-
Code: Select all
                <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"?
pjaj
 
Posts: 2
Joined: Sat Feb 09, 2013 2:23 pm

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 12 guests