W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2008

Custom HTML formatting

From: nimbuz <openxs@gmail.com>
Date: Sat, 10 May 2008 21:13:54 -0700 (PDT)
Message-ID: <17169910.post@talk.nabble.com>
To: html-tidy@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:59 GMT