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.
Asked
Active
Viewed 851 times
0
-
Don't know what String templates are exactly, but if you want JS highlighting for files with custom extension, you can go to Settings/Editor/File types and add `*.st` under _Registred Patterns_. – Bohuslav Burghardt Nov 12 '15 at 13:39
-
JavaScript highlighting can be quite ok in Intellij Idea, however, real support of JavaScript comes with Ultimate Edition. Did you consider that? – Rufi Nov 12 '15 at 14:02
-
I ended up just using the HTML syntax for my .st files and it's close enough for me. I just wondered if there was anything already out there. Thank you. – ztoben Nov 12 '15 at 15:38
2 Answers
2
The best solution is to use HTML syntax for *.st
files. You can set this in Preference > File types > HTML.

Jason Yu
- 311
- 2
- 12
1
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.

Dave
- 764
- 7
- 17