Reindent

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
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".

Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!

Reindent

Postby G-Sun » Fri Jan 30, 2015 2:26 pm

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!
www.g-sun.no/en/
G-Sun
 
Posts: 70
Joined: Mon Feb 11, 2013 12:40 pm

Re: Reindent

Postby kfury77 » Mon Feb 02, 2015 11:24 am

+1
I agree with this suggestion (and I don't trust HTML Tidy either). :-)
User avatar
kfury77
 
Posts: 97
Joined: Mon Jun 13, 2005 11:55 pm
Location: Osaka, Japan

Re: Reindent

Postby Aivars » Mon Feb 02, 2015 8:03 pm

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
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Reindent

Postby G-Sun » Mon Feb 02, 2015 10:15 pm

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)?

Both I'd say.
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/
G-Sun
 
Posts: 70
Joined: Mon Feb 11, 2013 12:40 pm

Re: Reindent

Postby Aivars » Tue Feb 03, 2015 8:59 pm

Does this online beautifier works well enough for you? http://codebeautify.org/htmlviewer/
If so, I could use it as basis for a plugin.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Reindent

Postby G-Sun » Wed Feb 04, 2015 10:00 am

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.

Thanks!
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


e.g.
Code: Select all
<div>
  <p>text</p>
  <img />
  <p>text
   <span>text</span>
  </p>
</div>
www.g-sun.no/en/
G-Sun
 
Posts: 70
Joined: Mon Feb 11, 2013 12:40 pm

Re: Reindent

Postby IceTater » Wed Feb 04, 2015 10:29 pm

Agree with G-Sun, better indentation would be wonderful. Although the software is fabulous already!
IceTater
 
Posts: 10
Joined: Sat Nov 29, 2014 1:00 am

Re: Reindent

Postby Aivars » Sun Feb 08, 2015 6:07 pm

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
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Reindent

Postby kfury77 » Tue Feb 10, 2015 11:36 am

This one looks better (the indenting is better):
http://ctrlq.org/beautifier/
User avatar
kfury77
 
Posts: 97
Joined: Mon Jun 13, 2005 11:55 pm
Location: Osaka, Japan


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests