Is it possible to completely stop Eclipse from line wrapping XML and HTML files? It is easy to do this i.e. for java files, but I couldn't find similar settings for XML and HTML files.
相关问题
- Illegal to have multiple roots (start tag in epilo
- Newtonsoft DeserializeXNode expands internal array
- Eclipse and Mylyn : how to disable grey files in t
- how to use special characters like '<'
- XML - XSLT - document() function inside count() fu
相关文章
- selenium+eclipse 打开网页时报错
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- Eclipse failing to open
- Eclipse how can I indent C++ preprocessor macros
- Why is FindBugs ignoring my check for null?
- Eclipse cleanup - what are the “.index” files - ca
- Directly signing an Office Word document using XML
Preferences > XML > XML Files > Editor
, and setline-width
there (Do accordingly for HTML, underWeb > HTML files
)Note: the word/line wrapping in eclipse is a "sore" topic, since 2003, as this massively voted bug 35779
As Bozho mentions, there is only hard-wrapping (at a specify length)
alt text http://www.openengsb.org/images/codingstyle/eclipse-xml-settings.png
Reminder:
Yes, the settings for XML formatting are in the IDE-wide preferences tab and apparently they cannot be set on a per-project basis.
I want to point out that what is really annoying is the wrapping of "free text" between elements like in:
<element>some free text</element>
That's really an inconvenience when dealing with the pattern format in logback.xml files, for instance.
I just found out that Eclipse won't format that bit if I enclose the text between
<![CDATA[..]]>
. For instance:<pattern><![CDATA[%d{HH:mm:ss.SSS} [%thread] [%X{host}|%X{ip}|%X{user}] %-5level %logger{36} - %msg%n]]></pattern>
Just wanted to share that.