In Eclipse (Helios) I have this XML source file
在Eclipse(Helios)中,我有这个XML源文件
<?xml version="1.0" encoding="utf-8"?>
<!--
I wanted to
===========
save this format of the comments.
-->
<x>
</x>
On format the file (Ctrl-Shft-F) I got the comment reformated.
在格式化文件(Ctrl-Shft-F)时,我重新格式化了评论。
<?xml version="1.0" encoding="utf-8"?>
<!-- I wanted to =========== save this format of the comments. -->
<x>
</x>
Is there an option to switch of pretty-print of comment sections ?
是否可以选择切换评论部分的漂亮图片?
2 个解决方案
#1
5
I'm using eclipse 3.6.0. Here's how i do this.
我正在使用eclipse 3.6.0。这是我如何做到这一点。
Windows->preferences->XML->XML Files->Editor
Uncheck the Join lines option.
取消选中“加入行”选项。
Attaching an image of how it looks on my machine
附上我在机器上的外观图像
#2
1
You can select only part of your XML file for formatting and leave out the comment part.
您只能选择部分XML文件进行格式化,并省略注释部分。
#1
5
I'm using eclipse 3.6.0. Here's how i do this.
我正在使用eclipse 3.6.0。这是我如何做到这一点。
Windows->preferences->XML->XML Files->Editor
Uncheck the Join lines option.
取消选中“加入行”选项。
Attaching an image of how it looks on my machine
附上我在机器上的外观图像
#2
1
You can select only part of your XML file for formatting and leave out the comment part.
您只能选择部分XML文件进行格式化,并省略注释部分。