Reindent
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Reindent
Hi1
Thanks for improved indent and visualization in v.2015!
I'm not trusting html tidy for sorting my indentation,
because it adds stuff to code.
Please improve this subject more.
I see tags jump ot of place,
and I would very much like the option to reindent page based on xml-struckture.
Thanks!
Thanks for improved indent and visualization in v.2015!
I'm not trusting html tidy for sorting my indentation,
because it adds stuff to code.
Please improve this subject more.
I see tags jump ot of place,
and I would very much like the option to reindent page based on xml-struckture.
Thanks!
www.g-sun.no/en/
Re: Reindent
+1
I agree with this suggestion (and I don't trust HTML Tidy either).
I agree with this suggestion (and I don't trust HTML Tidy either).

Re: Reindent
What are we talking about specifically? Taking any HTML no matter how messy (even if all HTML is in single line or all HTML has no indenting used at all) and re-indenting it in a way that seems correct to WeBuilder, or taking already correctly indented HTML and changing indent (e.g. re-indent from 2 spaces to 4 and so on)?
Blumentals Software Programmer
Re: Reindent
Both I'd say.Aivars wrote:What are we talking about specifically? Taking any HTML no matter how messy (even if all HTML is in single line or all HTML has no indenting used at all) and re-indenting it in a way that seems correct to WeBuilder, or taking already correctly indented HTML and changing indent (e.g. re-indent from 2 spaces to 4 and so on)?
html in the xml-format seems rather straight forward for a program to format.
And it's so helpful, turning what can be a large pile of html-mess into a clearly viewable structure.
Of course there are choices to make. Some tags are selfclosing, some could arguably go inline with text and there's js, php and asp.
But, really, anything in this direction is an improvement.
BTW: I guess grabbing the dom-structure is a next step for the program anyway,
with several ways for navigating the document, breadcrumb included.
www.g-sun.no/en/
Re: Reindent
Does this online beautifier works well enough for you? http://codebeautify.org/htmlviewer/
If so, I could use it as basis for a plugin.
If so, I could use it as basis for a plugin.
Blumentals Software Programmer
Re: Reindent
Thanks!Aivars wrote:Does this online beautifier works well enough for you? http://codebeautify.org/htmlviewer/
If so, I could use it as basis for a plugin.
Not bad with some quick check,
although the alignment horizontally got a little out of hand.
As long as it doesn't alter anything content-wise, it's fine.
xml has clearly defined levels,
so should be indented like this:
Code: Select all
Level1
Level2
Level3
Level2
Code: Select all
<div>
<p>text</p>
<img />
<p>text
<span>text</span>
</p>
</div>
www.g-sun.no/en/
Re: Reindent
Agree with G-Sun, better indentation would be wonderful. Although the software is fabulous already!
Re: Reindent
If you could find some good online beautifier I could write a plugin for beautifying based on the website, otherwise this will have to stay as a suggestion in the suggestions list for now.
Blumentals Software Programmer
Re: Reindent
This one looks better (the indenting is better):
http://ctrlq.org/beautifier/
http://ctrlq.org/beautifier/