From 637fd2123040749ed6af918ac2a00c532d8b4c31 Mon Sep 17 00:00:00 2001 From: Devon Rifkin Date: Tue, 15 Apr 2025 12:08:11 -0700 Subject: [PATCH] docs: change more template blocks to have syntax highlighting In #8215 syntax highlighting was added to most of the blocks, but there were a couple that were still being rendered as plaintext --- docs/template.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/template.md b/docs/template.md index 47e1399a2..636d72f0d 100644 --- a/docs/template.md +++ b/docs/template.md @@ -12,7 +12,7 @@ A basic Go template consists of three main parts: Here's an example of a simple chat template: -```gotmpl +```go {{- range .Messages }} {{ .Role }}: {{ .Content }} {{- end }} @@ -162,6 +162,6 @@ CodeLlama [7B](https://ollama.com/library/codellama:7b-code) and [13B](https://o Codestral [22B](https://ollama.com/library/codestral:22b) supports fill-in-middle. -```gotmpl +```go [SUFFIX]{{ .Suffix }}[PREFIX] {{ .Prompt }} ```