Gitea: Syntax Highlighting

Created on 20 Mar 2017  路  24Comments  路  Source: go-gitea/gitea

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?

kinenhancement revieweconfirmed

Most helpful comment

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

All 24 comments

Sorry for taking so much time to respond...

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

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

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 :)

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

Looks good :+1:

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

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.

I think this could be considered as something fundamental.

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.

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)

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

Created a Issue on Chroma.

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

Chroma now has ABAP support. Thanks for everyones help.

Yeah, just Chroma isnt implemented in Gitea yet?

@ShalokShalom not yet.

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

Has anyone considered tree-sitter?

An alternative many websites use is Highlight.js

So far as I know is Go prefered.

An alternative many websites use is Highlight.js

This is what Gitea currently uses.

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

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

Closed by #12047

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BNolet picture BNolet  路  3Comments

lunny picture lunny  路  3Comments

ghost picture ghost  路  3Comments

flozz picture flozz  路  3Comments

jorise7 picture jorise7  路  3Comments