简体   繁体   中英

Beyond Compare 3.0 and XML Tidy, but save Original Format

I am using Beyond Compare 3.0 and using the XML tidy and XML tidied with sorted attributes plugins. Its great and while I would like it to show me the "tidied" XML, Once I resolve me merge, I would like to save it back with the original formatting (not the tidied format). Is there anyway of doing this?

For example, if I have these two XML snippets -

File1 : <test attrib="1" batrib="2" catrib="3"\>
File2 : <test batrib="4" catrib="5" attrib="5"\>

I would like to visually see them tidied up and attributes sorted, so I can make my changes/resoluutions. For example, If I resolve to change the value of attrib to 5 and keep the rest, When I save the file, I want to see this ...

Final : <test attrib="5" batrib="2" catrib="3">

Not : <test 
        attrib="5" 
        batrib="2" 
        catrib="3">

Beyond compare seems to save the file in the second format (tidied) up.

Any Idea how I can go about fixing this?

Regards ...

我能想到的最好的方法是在合并后使用Visual Studio的格式文档功能重新整理文件。

I think Pretty Diff does what you are attempting to accomplish. It minifies input to remove comments and then beautifies input prior to running the diff algorithm so as to remove all differences attributed to white space and comments.

http://prettydiff.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM