Skip to content

Multi-Language highlighting based on filename #783

@silverwind

Description

@silverwind

What problem does this feature solve?

Template languages like Jinja are languages in languages and they would benefit from highlighting twice: Once for the templated syntax, and once for the template language itself. Requirement for this to work would be the presence of multiple file extensions like nginx.conf.j2.

What feature do you propose?

  • nginx.conf - First pass, strip the .j2 suffix, highlight as nginx
  • nginx.conf.j2 - Second pass, highlight as Jinja, retain nginx highlighting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions