NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to Re-indent XML


Joined: 11 Jul 2013
Posts: 12
Reply with quote
I know phpEd can re-indent html and php, but it doesn't seem to work on xml.

Basically I paste in my single line of xml (with several nodes) into a new file and the select re-indent Code. Nothing happens.

When I do the same thing (with the same code) in Dreamweaver and select 'Apply Source Formatting' it works. So I know the xml is good.

Any help would be greatly appreciated.
View user's profileFind all posts by daggetSend private message


Joined: 26 Sep 2007
Posts: 25
Reply with quote
PhpED requires that each node be on a new line, or so I've noticed.

So this:
Code:
<div><p></p></div>


Would need to be this:
Code:
<div>
<p>
</p>
</div>


In order for the autoindenter to work... which is not ideal.
View user's profileFind all posts by PureFormSend private message


Joined: 11 Jul 2013
Posts: 12
Reply with quote
Oh, that seems to be a bit of a short coming. It would be nice if it didn't matter what the initial format looked like (as Dreamweaver does).

I guess you can't have everything.

Maybe this could be included in a future release.

Is there a place where NuSphere accepts suggestions?
View user's profileFind all posts by daggetSend private message


Joined: 26 Sep 2007
Posts: 25
Reply with quote
Quote:
Is there a place where NuSphere accepts suggestions?


Your nearest trash can. Or, sometimes, here: https://shop.nusphere.com/customer/support.php or here: http://forum.nusphere.com/feature-request-for-phped-f3.html
View user's profileFind all posts by PureFormSend private message


Joined: 11 Jul 2013
Posts: 12
Reply with quote
Ah, gotcha.

Thanks for the heads up!!! Very Happy
View user's profileFind all posts by daggetSend private message
How to Re-indent XML
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic