Syntax highlighting: format Jinja2 files - filename.<file format>.j2 - as <file format> #13373

Open
opened 2025-11-02 10:40:20 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @yonas on GitHub (Aug 7, 2024).

Description

For example, filename.toml.j2 should be syntax highlighted in the file preview / file editor as a TOML file.

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

self-hosted command line.

Database

No response

Originally created by @yonas on GitHub (Aug 7, 2024). ### Description For example, `filename.toml.j2` should be syntax highlighted in the file preview / file editor as a `TOML` file. ### Gitea Version latest ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? self-hosted command line. ### Database _No response_
GiteaMirror added the type/upstream label 2025-11-02 10:40:20 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Aug 7, 2024):

we use chroma for syntax highlighting and there is already an open issue: https://github.com/alecthomas/chroma/issues/783 (opened by gitea)

@KN4CK3R commented on GitHub (Aug 7, 2024): we use chroma for syntax highlighting and there is already an open issue: https://github.com/alecthomas/chroma/issues/783 (opened by gitea)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13373