[Python] Auto-detect Jinja2 files and activate proper highlighting in Sublime Text

Discussão em 'Python' iniciado por Stack, Março 25, 2025.

  1. Stack

    Stack Membro Participativo

    Right now I have the package Jinja2 installed and it gives proper syntax highlighting, but I have to change the syntax every time I open a new html file.

    I would like Jinja2 highlighting to be the default for html in Python projects. The only solution I came up with so far was to change all Jinja files to .jinja instead of .html and then I could create a separate Jinja.sublime-settings, but I'm not quite sure this won't give me problems later and I would prefer not to tweak very much.

    Any idea?

    Thanks.

    Continue reading...

Compartilhe esta Página