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

No Pascal code highlighting #21837

Closed
Sniperq2 opened this issue Nov 16, 2022 · 7 comments
Closed

No Pascal code highlighting #21837

Sniperq2 opened this issue Nov 16, 2022 · 7 comments
Labels
type/enhancement An improvement of existing functionality type/upstream This is an issue in one of Gitea's dependencies and should be reported there

Comments

@Sniperq2
Copy link

Sniperq2 commented Nov 16, 2022

Description

When I add Pascal project to my gitea server I saw no any code highlighing for pascal files. See screenshot.

Gitea Version

1.17.3

Can you reproduce the bug on the Gitea demo site?

Did no try.

Log Gist

No response

Screenshots

gitea-pascal

Git Version

No response

Operating System

Windows 10

How are you running Gitea?

Windows exe file

Database

MySQL

@techknowlogick techknowlogick added the type/upstream This is an issue in one of Gitea's dependencies and should be reported there label Nov 16, 2022
@techknowlogick
Copy link
Member

Thanks for reporting this, we use https://github.com/alecthomas/chroma as our syntax highlighter.

@silverwind
Copy link
Member

Follow alecthomas/chroma#288, or better yet, contribute it there.

@silverwind
Copy link
Member

Might want to keep this open just for visibilty.

@silverwind silverwind reopened this Nov 16, 2022
@silverwind silverwind added type/enhancement An improvement of existing functionality and removed type/bug labels Nov 16, 2022
@codiacdev
Copy link

I created a pull request (alecthomas/chroma#883) and it was accepted, so there is hope...

@regs01
Copy link

regs01 commented Dec 27, 2023

I created a pull request (alecthomas/chroma#883) and it was accepted, so there is hope...

And it's working in Chroma 2.12. Any chance of update for Gitea 1.22?

@wxiaoguang
Copy link
Contributor

And it's working in Chroma 2.12. Any chance of update for Gitea 1.22?

Gitea 1.22 is using github.com/alecthomas/chroma/v2 v2.12.0

https://github.com/go-gitea/gitea/blob/a1dfffd723c434966152ee521c99e966a3aee065/go.mod#L20C1-L20C41

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Dec 27, 2023

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality type/upstream This is an issue in one of Gitea's dependencies and should be reported there
Projects
None yet
Development

No branches or pull requests

6 participants