go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.08k stars 5.41k forks source link

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

Open yonas opened 1 month ago

yonas commented 1 month ago

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

KN4CK3R commented 1 month ago

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