Is there a way to correctly reformat HTML in UltraEdit, especially block tags? I haven't found one so far.
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:
Reindenting that code in UltraEdit results in:
This is absolutely not what I want. 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:
Thanks.
PS: Please no 3rd party product suggestions like HTML Tidy
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>
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>
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>
PS: Please no 3rd party product suggestions like HTML Tidy