freemarker support
I'm not very familiar with freemarker so I might be doing something wrong. I need to modify one of the freemarker templates included with Struts2. The first thing I noticed was freemarker templates with .ftl extension were not associated with Velocity templates so I added it. Unfortunately, when it try to edit the file in the editor, Intellij flags almost the whole file as an error. Is there anything I can do to improve the situation beyond disabling all inspections? I attached a screenshot.
Attachment(s):
freemarkerErrors.png
Please sign in to leave a comment.
Hello,
FreeMarker is not the same thing as Velocity. Please associate the extension
with the correct file type.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
.ftl files should be associated with Freemarker, while .vm files should be associated with Velocity.
Freemarker and Velocity are two totally separate templating systems, with different syntax rules.
I realize Velocity and Freemarker are different but the current EAP has .ft files associated to Velocity template files and Freemarker is not one of the recognized file types so what exactly am I supposed to do to get Intellij to recognize them? I've used Velocity for years so I understand the difference.
NEVERMIND: I had the Freemarker plug-in disabled. Once I enabled it I was able to make the association.
Grant
Hello Grant,
Please make sure you have the FreeMarker plugin enabled in Settings | Plugins.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dmitry,
That was one of my duh moments. I keep a lot of plug-ins disabled when I don't need them to boost performance. I never used Freemarker before so I had it disabled. After I posted my previous comment I realized the plug-in was disabled. Thanks for the reminder.
Grant