Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 614
Benoît Guérout Avatar asked Oct 28 '10 15:10

Benoît Guérout


1 Answers

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

like image 171
Wolfgang Fahl Avatar answered Oct 21 '22 02:10

Wolfgang Fahl