Intellij IDEA is already very good at syntax highlighting .vm
Velocity files or independent .html
files. But very often one uses template engines to create something in HTML format. Is there any way to enable this mixed mode syntax highlighting, like the one we have for JSP technology?
I was not able to assign syntax highlighting using "File Type" option as mentioned in the doc as "FreeMarker Template" language was not available in the language dropdown.
So I followed this doc to assign a file type on a file name extension using below steps:
File | File Properties | Associate with File Type
from the main menu.Did you specify the language for your templates?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With