#158 Colors in code.

Closed
opened 6 months ago by jeffersonrocha · 4 comments

Hello! I migrated from github to notabug a while ago, here is my portfolio of programs in shell script ... I and many programmers have the need to have the colored codes for a better read! Would you implement something?

Hello! I migrated from github to notabug a while ago, here is my portfolio of programs in shell script ... I and many programmers have the need to have the colored codes for a better read! Would you implement something?
zPlus commented 6 months ago

This depends on what kind of library Gogs is using for code highlighting. As far as I can see, no files are highlighted regardless of their extension. However, I've found a couple of examples at try.gogs.io that are indeed highlighted: .json file and .sh file. So I'd guess that this is a configuration issue, like some flag that has to be turned on.

This depends on what kind of library Gogs is using for code highlighting. As far as I can see, no files are highlighted regardless of their extension. However, I've found a couple of examples at try.gogs.io that are indeed highlighted: [.json file](https://try.gogs.io/terrywater/tt/src/master/composer.json) and [.sh file](https://try.gogs.io/MarkDDi/gitlab-runner/src/master/install.sh). So I'd guess that this is a configuration issue, like some flag that has to be turned on.
zPlus commented 6 months ago
There seems to be a couple of requests that return 404: - https://notabug.org/plugins/highlight-9.2.0/github.css - https://notabug.org/plugins/highlight-9.2.0/highlight.pack.js
zPlus commented 6 months ago

The correct files are

this seems to be already fixed upstream, so a new merge should fix the issue.

The correct files are - https://notabug.org/plugins/highlight-9.6.0/github.css - https://notabug.org/plugins/highlight-9.6.0/highlight.pack.js this seems to be already fixed upstream, so a new merge should fix the issue.

This has been corrected now.

This has been corrected now.
Sign in to join this conversation.
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.