Handlebars and SQL syntax highlighting?
I have an application that generates SQL files from Handlebar templates. How can I get syntax highlighting for both in the same file? SQL in a *.sql.hbs file or Handlebars in a *.sql file? I can't seem to get it set up. I have no idea what to do with the Places Pattern. I can't find any documentation to help with this.
Please sign in to leave a comment.
File types can't be added unless they are listed in one of the extensions we support in File | Settings | Editor | File Types
However, you can highlight the code fragments of SQL and inject them from that file:
https://www.jetbrains.com/help/datagrip/using-language-injections.html