ArcherHume / jinja2-support

Highlighting and indentation for Jinja2 templates
7 stars 2 forks source link

Syntax highlighting in other file types #7

Open dwt opened 2 weeks ago

dwt commented 2 weeks ago

Hi there,

I would love to have Jinja highlighting also in other filetypes like yaml for helm templates.

Is that possible? If so, what kind of changes would be required to make this work?

rterbush commented 1 week ago

I've tried to make this work for saltstack files using the following in settings.json. Not sure yet if there are other code changes needed to make this work?

"file_types": {
    "jinja2": ["sls"]
  },
rterbush commented 1 week ago

Ah, appears it is case sensitive... the following works.

"file_types": {
    "Jinja2": ["sls"]
  },

Would love to find a way to combine yaml and jinja2 now... :-)