No Pascal code highlighting #9844

Closed
opened 2025-11-02 08:51:07 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @Sniperq2 on GitHub (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

Originally created by @Sniperq2 on GitHub (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](https://user-images.githubusercontent.com/1060059/202267298-39a99846-2f2b-4162-9978-e5b3b2fb9757.png) ### Git Version _No response_ ### Operating System Windows 10 ### How are you running Gitea? Windows exe file ### Database MySQL
GiteaMirror added the type/enhancementtype/upstream labels 2025-11-02 08:51:08 -06:00
Author
Owner

@techknowlogick commented on GitHub (Nov 16, 2022):

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

@techknowlogick commented on GitHub (Nov 16, 2022): Thanks for reporting this, we use https://github.com/alecthomas/chroma as our syntax highlighter.
Author
Owner

@silverwind commented on GitHub (Nov 16, 2022):

Follow https://github.com/alecthomas/chroma/issues/288, or better yet, contribute it there.

@silverwind commented on GitHub (Nov 16, 2022): Follow https://github.com/alecthomas/chroma/issues/288, or better yet, contribute it there.
Author
Owner

@silverwind commented on GitHub (Nov 16, 2022):

Might want to keep this open just for visibilty.

@silverwind commented on GitHub (Nov 16, 2022): Might want to keep this open just for visibilty.
Author
Owner

@codiacdev commented on GitHub (Nov 15, 2023):

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

@codiacdev commented on GitHub (Nov 15, 2023): I created a pull request (https://github.com/alecthomas/chroma/pull/883) and it was accepted, so there is hope...
Author
Owner

@regs01 commented on GitHub (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?

@regs01 commented on GitHub (Dec 27, 2023): > I created a pull request ([alecthomas/chroma#883](https://github.com/alecthomas/chroma/pull/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? <img width="574" src="https://github.com/go-gitea/gitea/assets/10468217/0c0c5c4a-e176-4d74-a2b4-6dde85b85d09">
Author
Owner

@wxiaoguang commented on GitHub (Dec 27, 2023):

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

a1dfffd723/go.mod (L20C1-L20C41)

@wxiaoguang commented on GitHub (Dec 27, 2023): > 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
Author
Owner

@wxiaoguang commented on GitHub (Dec 27, 2023):

https://try.gitea.io/wxiaoguang/test/src/branch/master/test.pas

image

@wxiaoguang commented on GitHub (Dec 27, 2023): https://try.gitea.io/wxiaoguang/test/src/branch/master/test.pas ![image](https://github.com/go-gitea/gitea/assets/2114189/537545fb-354a-44ef-874e-6c1238c58030)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9844