[PR #8215] [MERGED] added source.go for syntax highlighting on code blocks #12668

Closed
opened 2026-04-13 00:06:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8215
Author: @belfie13
Created: 12/23/2024
Status: Merged
Merged: 12/27/2024
Merged by: @jmorganca

Base: mainHead: patch-1


📝 Commits (5)

  • 1d4067f added source.go for syntax highlighting on code blocks
  • 8d69acf Update docs/template.md
  • c271b40 Update docs/template.md
  • 6aa4924 Update docs/template.md
  • e5395e1 Update docs/template.md

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 docs/template.md (+3 -3)

📄 Description

the code blocks were just shown as raw preformatted text with the golang code block.

I changed the code block info string to the value of the go language tm_scope from linguist in https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml which works fine on my end.

I hope the highlight issue is a global thing, i've tested it on another browser.

I can update the other files if this is accepted, thank you.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/8215 **Author:** [@belfie13](https://github.com/belfie13) **Created:** 12/23/2024 **Status:** ✅ Merged **Merged:** 12/27/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (5) - [`1d4067f`](https://github.com/ollama/ollama/commit/1d4067f9123093421498c7820ec53b0b644e9a17) added source.go for syntax highlighting on code blocks - [`8d69acf`](https://github.com/ollama/ollama/commit/8d69acff2bd1053e825ad637f7e6b1ce2bdc46e4) Update docs/template.md - [`c271b40`](https://github.com/ollama/ollama/commit/c271b4039c3c522d64d0b68a343aa64d1236ffae) Update docs/template.md - [`6aa4924`](https://github.com/ollama/ollama/commit/6aa4924bc8fce9692944486a62c66db1d0dbb1ae) Update docs/template.md - [`e5395e1`](https://github.com/ollama/ollama/commit/e5395e15b2a5beeb2d8ab1be61d92b395b27427d) Update docs/template.md ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/template.md` (+3 -3) </details> ### 📄 Description the code blocks were just shown as raw preformatted text with the `golang` code block. I changed the code block info string to the value of the `go` language `tm_scope` from linguist in https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml which works fine on my end. I hope the highlight issue is a global thing, i've tested it on another browser. I can update the other files if this is accepted, thank you. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:06:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#12668