Benoît Guérout
Benoît Guérout

Reputation: 1997

Format freemarker files in Eclipse

Actually we have freemarker files (ftl) under Eclipse + Freemarker plugin (from JBoss).

Do you know a way to format ftl files ?

Thanks

Upvotes: 11

Views: 17981

Answers (4)

TinusSky
TinusSky

Reputation: 1737

An old question. I had the same problem for some time now, the default html editor contains some irritating features when working on freemarker templates, especially when using the bracket syntax.

Aptana studio eclipse plugin solves most of the problems: http://www.aptana.com/products/studio3/download

Upvotes: 0

Wolfgang Fahl
Wolfgang Fahl

Reputation: 15769

For ftl files that represent HTML configuring eclipse to open the HTML Editor works nicely. The HTML Editor has formatting capability as asked for. Todo configure eclipse to open ftl files with the HTML Editor you can use "open with" and there you'll get offered to link the HTML Editor permanently to the ftl extension: Dialog for Unsupported Content Type

In the Content Types Preferences Page you can than actually add the *.ftl extension: enter image description here

Upvotes: 16

NimChimpsky
NimChimpsky

Reputation: 47290

Associated the ftl file extension with your web page editor (assuming you have wtp already installed).

Upvotes: 0

Andy
Andy

Reputation: 8949

I looked for a formatting tool a few months ago and I was unable to find any such tools. To my knowledge there no such tools currently available, just the syntax highlighting you mentioned.

Upvotes: 3

Related Questions