i've currently found a way to reformat the html source of a webpage with the firefox extension "view reformatted source". it successfully indents the html correctly, but unfortunately when i copy/paste the code from there to ultraedit i get a flat list, so the firefox extension doesn't work correctly for me.
the flat list looks like this:
- Code: Select all
<html>
<head>
</head>
<body>
<table>
<tr>
<td>
<input name="">
<input name="">
<input name="">
</td>
</tr>
</table>
<div>
<br>some text
<br>
</div>
</body>
</html>
reindenting that code in ultraedit delivers:
- Code: Select all
<html>
<head>
</head>
<body>
<table>
<tr>
<td>
<input name="">
<input name="">
<input name="">
</td>
</tr>
</table>
<div>
<br>some text
<br>
</div>
</body>
</html>
which is absolutely not requested. it indents every tag, e. g. incorrectly the <input> tag several times.
so the solution might be to indent only block tags. is there a way to achieve this in ultraedit?
or even better: is there a way to reformat the html correctly so that there will be a line break plus the correct indention after every html tag?
what i want is this:
- Code: Select all
<html>
<head>
</head>
<body>
<table>
<tr>
<td>
<input name="">
<input name="">
<input name="">
</td>
</tr>
</table>
<div>
<br>some text
<br>
</div>
</body>
</html>
thanks.
ps: please no 3rd party product suggestions like htmltidy

