How to make eclipse format for my tml files, how do I want them to be?

Using Eclipse Juno SR1:

I have Tapestry Tools installed in my eclipse installation and I have also configured my XML Formatter.

However, regardless of whether I open the tml file in the TML editor or in the XML editor, when I enable the eclipse format, different formatting rules are used than for β€œnormal” XML files.

How can I make sure the same rules apply?

Also, why does the formatter sometimes allow longer lines than the specified line width? it seems that it only introduces line breaks if the attribute is outside the limit, but not if the attribute value is too large ...

Reference questions:

How to set up Eclipse XML formatting?

Export Eclipse XML Formatting Rules?

+8
eclipse xml eclipse-juno tapestry
source share
1 answer

Make * .tml, acting like * .xml, by doing this:

  • In the settings, go to General> Content Types .
  • In the Content Types: section , scroll down and expand Text .
  • Scroll down to XML .
  • For File Associations, click Add and enter *.tml .
+3
source share

All Articles