дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
.jinja, .jinja2 and .j2 files opened as Plain Text. They now open as Jinja2 templates, with the extension before them deciding the content between the tags: Jinja2 HTML (.html.j2, .html.jinja, .htm.*) gets the HTML language server, Emmet, tag closing and linked tags like Django templates; any other name (nginx.conf.j2, values.yaml.j2, base.jinja) is a Jinja2 Template over plain text without HTML tooling. Both use @codemirror/lang-jinja (now a direct dependency, the same 6.0.1 already in the lockfile): highlighting, folding and indentation of block statements, completion of tags, filters and tests, and tag matching. The file icon follows the extension before .j2, and breakpoints in a file typed as a Jinja language turn on debugpy's jinja support. Closes #6644 Co-authored-by: wildcatDownstairs <[email protected]>
7 рядки
172 B
TOML
7 рядки
172 B
TOML
id = "jinja"
|
|
name = "Jinja2 Template"
|
|
extensions = ["jinja", "jinja2", "j2"]
|
|
block-comment = ["{#", "#}"]
|
|
indent = { tab-size = 2, insert-spaces = true }
|
|
ui-mode = "Jinja"
|