intellij-ideastringtemplate

How do I turn on syntax highlighting for StringTemplate templates (*.st) in intellij?


I have a string template file (.st) in IntelliJ that I would like to see syntax highlighting on. How can I turn this on? I can't seem to find it anywhere.


Solution

  • Short answer is - you can't.

    Someone must first implement a syntax highlighter plugin for the format. The StringTemplate author, Terrence Parr, has begun work on such a plugin for String Template 4 but it does not support the older .st file format. I tried the plugin. Even on .stg files it is not ideal if you use a dark editor theme.