[PR #17] [CLOSED] Use tree-painter for syntax highlighting #124

Closed
opened 2026-02-27 10:15:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/matze/wastebin/pull/17
Author: @matze
Created: 2/7/2023
Status: Closed

Base: masterHead: tree-painter


📝 Commits (1)

  • 054fa16 Use tree-painter for syntax highlighting

📊 Changes

9 files changed (+300 additions, -75 deletions)

View changed files

.gitmodules (+3 -0)
📝 Cargo.lock (+242 -0)
📝 Cargo.toml (+1 -0)
📝 src/errors.rs (+2 -5)
📝 src/highlight.rs (+41 -42)
📝 src/pages.rs (+2 -3)
📝 src/themes/style.css (+4 -19)
📝 templates/index.html (+4 -6)
tree-painter (+1 -0)

📄 Description

This is a work-in-progress PR potentially replacing syntect for tree-painter.

Comparison

metric syntect tree-painter
release size 8.4 MB 35.0 MB
render time (debug) 680ms 64ms
render time (release) 75ms 15ms
languages 62 20

Besides that highlighting is subjectively richer with tree-painter on the other hand the build process is much more involved.


🔄 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/matze/wastebin/pull/17 **Author:** [@matze](https://github.com/matze) **Created:** 2/7/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `tree-painter` --- ### 📝 Commits (1) - [`054fa16`](https://github.com/matze/wastebin/commit/054fa1636a5c83411fbcf3d677aeff90a2a6f4a9) Use tree-painter for syntax highlighting ### 📊 Changes **9 files changed** (+300 additions, -75 deletions) <details> <summary>View changed files</summary> ➕ `.gitmodules` (+3 -0) 📝 `Cargo.lock` (+242 -0) 📝 `Cargo.toml` (+1 -0) 📝 `src/errors.rs` (+2 -5) 📝 `src/highlight.rs` (+41 -42) 📝 `src/pages.rs` (+2 -3) 📝 `src/themes/style.css` (+4 -19) 📝 `templates/index.html` (+4 -6) ➕ `tree-painter` (+1 -0) </details> ### 📄 Description This is a work-in-progress PR potentially replacing syntect for tree-painter. ### Comparison metric| syntect | tree-painter ------|-----------|---------- release size | **8.4 MB** | 35.0 MB render time (debug) | 680ms | **64ms** render time (release) | 75ms | **15ms** languages | **62** | 20 Besides that highlighting is subjectively richer with tree-painter on the other hand the build process is much more involved. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:15:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#124
No description provided.