Custom HTML formatting

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.

Received on Sunday, 11 May 2008 10:39:06 UTC