Search code examples
intellij-ideaplatformjuzu

IntelliJ *.gtmpl juzu files


I'm building a Juzu project for portlet development for eXo Platform with IntelliJ.

The problem is that I have template files that are index.gtmpl, and I can have HTML coding inside it, but the file opens as a simple text file.

Is there a plugin on a configuration that I'm missing?

Thanks!

================= ** EDIT ** ============================

My file looks like this:

editMode.gtmpl

#{param name=enableComment/} <form action="@{JuZcretApplication.enableComment()}" method="POST" role="form"> <h5>Configuration</h5> <input type="checkbox" name="enableComment" <%=enableComment ? "checked" : "" %>/>Enable Comment <button type="submit">Save</button> </form>


Solution

  • You can associate *.gtmpl files with the HTML editor:

    Open File > Settings > Editor > File Types > HTML files and add your extension to registered patterns in the right panel.

    Source