在Eclipse中维护格式的XML注释部分的格式

Pet*_*Mmm 6 xml eclipse pretty-print

在Eclipse(Helios)中,我有这个XML源文件

<?xml version="1.0" encoding="utf-8"?>
<!--
I wanted to 
===========
save this format of the comments.

-->
<x>
</x>
Run Code Online (Sandbox Code Playgroud)

在格式化文件(Ctrl-Shft-F)时,我重新格式化了评论.

<?xml version="1.0" encoding="utf-8"?>
<!-- I wanted to =========== save this format of the comments. -->
<x>
</x>
Run Code Online (Sandbox Code Playgroud)

是否可以选择切换评论部分的漂亮印刷品?

Adi*_*tya 10

我正在使用eclipse 3.6.0.这是我如何做到这一点.

Windows-> preferences-> XML-> XML Files-> Editor

取消选中" 加入行"选项.

附上我在机器上的外观图像

偏好图片