« Return to Thread: Custom HTML formatting

Custom HTML formatting

by nimbuz :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: Custom HTML formatting