Syntax Highlighting #545

Closed
opened 2025-11-02 03:27:39 -06:00 by GiteaMirror · 24 comments
Owner

Originally created by @hughesjs on GitHub (Mar 20, 2017).

I only develop in C# so it might not be the same for all languages. However, it appears to myself, and those within my team that the syntax highlighting is very lacklustre and not really useful for much.

Could we consider moving towards a better syntax highlighting library?

Originally created by @hughesjs on GitHub (Mar 20, 2017). I only develop in C# so it might not be the same for all languages. However, it appears to myself, and those within my team that the syntax highlighting is very lacklustre and not really useful for much. Could we consider moving towards a better syntax highlighting library?
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 03:27:39 -06:00
Author
Owner

@andreynering commented on GitHub (May 19, 2017):

Sorry for taking so much time to respond...

Can you give us an example? Maybe a C# file example and a screenshot.

@andreynering commented on GitHub (May 19, 2017): Sorry for taking so much time to respond... Can you give us an example? Maybe a C# file example and a screenshot.
Author
Owner

@ShalokShalom commented on GitHub (Jan 14, 2018):

This seems related: https://github.com/go-gitea/gitea/issues/2994

@ShalokShalom commented on GitHub (Jan 14, 2018): This seems related: https://github.com/go-gitea/gitea/issues/2994
Author
Owner

@depau commented on GitHub (Sep 1, 2018):

I'll add myself here as I'm noticing Kotlin is not supported.

@depau commented on GitHub (Sep 1, 2018): I'll add myself here as I'm noticing Kotlin is not supported.
Author
Owner

@ShalokShalom commented on GitHub (Sep 1, 2018):

Syntax highlighting is still a heavy issue in Gitea as it seems. Is it suitable to put some focus on this?
It seems a critical part of the whole experience to me. Thanks :)

@ShalokShalom commented on GitHub (Sep 1, 2018): Syntax highlighting is still a heavy issue in Gitea as it seems. Is it suitable to put some focus on this? It seems a critical part of the whole experience to me. Thanks :)
Author
Owner

@hughesjs commented on GitHub (Sep 6, 2018):

Chroma looks promising... https://github.com/alecthomas/chroma

@hughesjs commented on GitHub (Sep 6, 2018): Chroma looks promising... https://github.com/alecthomas/chroma
Author
Owner

@ShalokShalom commented on GitHub (Sep 7, 2018):

Looks good 👍

@ShalokShalom commented on GitHub (Sep 7, 2018): Looks good :+1:
Author
Owner

@hughesjs commented on GitHub (Sep 7, 2018):

I'm a C# guy and don't have time to be delving into Go right now but if nobody has taken this up in a few weeks I'll have a crack

@hughesjs commented on GitHub (Sep 7, 2018): I'm a C# guy and don't have time to be delving into Go right now but if nobody has taken this up in a few weeks I'll have a crack
Author
Owner

@stale[bot] commented on GitHub (Jan 11, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 11, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@ShalokShalom commented on GitHub (Jan 13, 2019):

I think this could be considered as something fundamental.

@ShalokShalom commented on GitHub (Jan 13, 2019): I think this could be considered as something fundamental.
Author
Owner

@stale[bot] commented on GitHub (Mar 14, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Mar 14, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@Stegosawr commented on GitHub (Sep 12, 2019):

Syntax highlighting for ABAP is not working correctly too. Would be very nice if that would change. I attached a example file.
image

(Sorry that the comments are in german, but I think you'll get the point)

@Stegosawr commented on GitHub (Sep 12, 2019): Syntax highlighting for ABAP is not working correctly too. Would be very nice if that would change. I attached a example file. ![image](https://user-images.githubusercontent.com/38107067/64771371-2320de00-d54f-11e9-8c30-ed56054a2d47.png) (Sorry that the comments are in german, but I think you'll get the point)
Author
Owner

@ShalokShalom commented on GitHub (Sep 12, 2019):

Could we set a bounty on https://github.com/alecthomas/chroma

@ShalokShalom commented on GitHub (Sep 12, 2019): Could we set a bounty on https://github.com/alecthomas/chroma
Author
Owner

@Stegosawr commented on GitHub (Sep 17, 2019):

Created a Issue on Chroma.

Update:
Someone said he's working on it :)

@Stegosawr commented on GitHub (Sep 17, 2019): Created a [Issue](https://github.com/alecthomas/chroma/issues/278) on Chroma. Update: Someone said he's working on it :)
Author
Owner

@Stegosawr commented on GitHub (Sep 20, 2019):

Chroma now has ABAP support. Thanks for everyones help.

@Stegosawr commented on GitHub (Sep 20, 2019): Chroma now has ABAP support. Thanks for everyones help.
Author
Owner

@ShalokShalom commented on GitHub (Sep 21, 2019):

Yeah, just Chroma isnt implemented in Gitea yet?

@ShalokShalom commented on GitHub (Sep 21, 2019): Yeah, just Chroma isnt implemented in Gitea yet?
Author
Owner

@lunny commented on GitHub (Sep 21, 2019):

@ShalokShalom not yet.

@lunny commented on GitHub (Sep 21, 2019): @ShalokShalom not yet.
Author
Owner

@ShalokShalom commented on GitHub (Sep 21, 2019):

Thanks a lot. So it seems you consider it as an option? Is it already on some plan?

@ShalokShalom commented on GitHub (Sep 21, 2019): Thanks a lot. So it seems you consider it as an option? Is it already on some plan?
Author
Owner

@FunctionalHacker commented on GitHub (Oct 16, 2019):

Has anyone considered tree-sitter?

@FunctionalHacker commented on GitHub (Oct 16, 2019): Has anyone considered [tree-sitter](https://tree-sitter.github.io/tree-sitter)?
Author
Owner

@Martmists-GH commented on GitHub (Dec 7, 2019):

An alternative many websites use is Highlight.js

@Martmists-GH commented on GitHub (Dec 7, 2019): An alternative many websites use is [Highlight.js](https://highlightjs.org/)
Author
Owner

@ShalokShalom commented on GitHub (Dec 7, 2019):

So far as I know is Go prefered.

@ShalokShalom commented on GitHub (Dec 7, 2019): So far as I know is Go prefered.
Author
Owner

@jolheiser commented on GitHub (Dec 7, 2019):

An alternative many websites use is Highlight.js

This is what Gitea currently uses.

@jolheiser commented on GitHub (Dec 7, 2019): > An alternative many websites use is [Highlight.js](https://highlightjs.org/) This is what Gitea currently uses.
Author
Owner

@Martmists-GH commented on GitHub (Dec 7, 2019):

Huh, I'm not seeing any highlighting at all on my repos

@Martmists-GH commented on GitHub (Dec 7, 2019): Huh, I'm not seeing any highlighting at all on my repos
Author
Owner

@GitMensch commented on GitHub (Jun 8, 2020):

I think this can be closed in favor of #7729, couldn't it?

@GitMensch commented on GitHub (Jun 8, 2020): I think this can be closed in favor of #7729, couldn't it?
Author
Owner

@lunny commented on GitHub (Jul 7, 2020):

Closed by #12047

@lunny commented on GitHub (Jul 7, 2020): Closed by #12047
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#545