gieri:
--------------------------------------------------------------------------------
thank you for this hint.. that was new to me.. regretably the code is still in
one line :(

f.ex. if I have <ul> <li>blabla</li><li>blablub</li></ul>
--------------------------------------------------------------------------------

Hi, yes, but it seems to be the same behaviour like in a regular html file.

Maybe you can try to make a custom tidy setting, which would do, what you need
(see http://tidy.sourceforge.net/docs/quickref.html )
As a quick start, I tried to modify the builtin "TiDy convert to XML" to the
following (not sure about the exact parameters, you need, hence in will need
some tweaking):

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[TiDy convert to XML - reindent]
indent:yes
indent-spaces:2
input-xml:yes
markup:yes
output-xml:yes
quiet:yes
wrap:100
wrap-asp:yes
wrap-attributes:yes
wrap-jste:yes
wrap-php:yes
write-back:yes

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Go to HTML :: Tidy :: Edit
insert a new section and save the ini-file;
the new option should be shown in the tidy-submenu, which converts:

<ul> <li>blabla</li><li>blablub</li></ul>

to:

<ul>
  <li>blabla</li>
  <li>blablub</li>
</ul>


an important part of the configuration seems to be:
input-xml:yes
which prevents adding implicit tags etc.

Greetings,
   vbr

-- 
<http://forum.pspad.com/read.php?2,46361,46365>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem