Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syntax highlighting for jinja templates #2827

Open
moonburnt opened this issue Jun 17, 2021 · 1 comment
Open

Add syntax highlighting for jinja templates #2827

moonburnt opened this issue Jun 17, 2021 · 1 comment

Comments

@moonburnt
Copy link

moonburnt commented Jun 17, 2021

currently only "vanilla" html parts of templates would have highlighting - the rest is recognized as plain text. And adding .jinja/.j2 extension to file without specifying <!DOCTYPE html> in header (say, if file extends other templates) will break highlighting entirely

@elextr
Copy link
Member

elextr commented Jun 17, 2021

Highlighting lexers are part of the Scintilla project, if an existing lexer isn't good enough then a new one must be added there first. You can look at using a different (existing) lexer in a custom filetype.

You can add extensions to existing filetypes by editing Menu->Tools->Configuration Files->filetype_extensions.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants