config options to place end tag on new line

View: New views
1 Messages — Rating Filter:   Alert me  

config options to place end tag on new line

by fpdave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am comparing XML files and want to have every attribute on a new line and to have the end tag of an element on a new line too.  This way, the end tag doesnt give false comparison readings.  FYI I am using the excellent Beyond Compare 2 for comparison, with an HTMLTidy pre-processor.

I know how to have every attribute on a new line, though saying that, the first is on the same line as the start-tag, eg
<anelement anettribute="attribvalue"
  attrib2="attrib2value">

I want:
<anelement
  anettribute="attribvalue"
  attrib2="attrib2value"
>