aboutsummaryrefslogtreecommitdiff
path: root/handle_repo_tree.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 15:02:06 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 15:02:06 +0800
commit2b972ca1cce1633aa94891c1a24dcf6a54eda6bc (patch)
treea9cf27eb68bf17a6aa313a8b9aa7485b95a6f070 /handle_repo_tree.go
parentrepo_tree: Add chroma.css (diff)
downloadforge-2b972ca1cce1633aa94891c1a24dcf6a54eda6bc.tar.gz
forge-2b972ca1cce1633aa94891c1a24dcf6a54eda6bc.tar.zst
forge-2b972ca1cce1633aa94891c1a24dcf6a54eda6bc.zip
repo_tree: Attempt to use the xcode theme
Diffstat (limited to 'handle_repo_tree.go')
-rw-r--r--handle_repo_tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handle_repo_tree.go b/handle_repo_tree.go
index c2810d9..1a2c810 100644
--- a/handle_repo_tree.go
+++ b/handle_repo_tree.go
@@ -81,7 +81,7 @@ func handle_repo_tree(w http.ResponseWriter, r *http.Request) {
return
}
var formatted_unencapsulated bytes.Buffer
- style := chroma_styles.Get("emacs")
+ style := chroma_styles.Get("xcode")
formatter := chroma_formatters_html.New(chroma_formatters_html.WithClasses(true), chroma_formatters_html.TabWidth(8))
formatter.Format(&formatted_unencapsulated, style, iterator)
formatted_encapsulated := template.HTML(formatted_unencapsulated.Bytes())