Custom HTML formatting

nimbuz <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
Hi,

Although my editor has HTML tidy and it works pretty well, but it doesn't
format the code as well and compactly as dreamweaver, like for example:

Dreamweaver formats the code like so

[CODE]      <div id="nav">
        <ul>
          <li class="selected"> # One </li>
          <li> # Two </li>
          <li> # Three </li>
          <li> # Four </li>
          <li> # Five </li>
        </ul>
      </div>[/CODE]

But my editor formats it as:

[CODE]          <div id="nav">
            <ul>
              <li class="selected">
                 # One 
              </li>
              <li>
                 # Two 
              </li>
              <li>
                 # Three 
              </li>
              <li>
                 # Four 
              </li>
              <li>
                 # Five 
              </li>
            </ul>
          </div>[/CODE]

I tried several combinations of tab-size, indent-space etc but no joy. [B]Is
there any way to format it more compatly - ie. don't push a, span, br (or
custom-defined tags) etc.. to a new line?[/B]

Many thanks
-- 
View this message in context: http://www.nabble.com/Custom-HTML-formatting-tp17169910p17169910.html
Sent from the w3.org - html-tidy mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.