You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,16 @@ html = highlight("def hello(): print('world')", "python")
15
15
16
16
---
17
17
18
-
## Why Rosettes?
18
+
## What is Rosettes?
19
+
20
+
Rosettes is a syntax highlighter for Python 3.14t. Hand-written state machines, O(n) guaranteed, zero ReDoS risk. Safe for untrusted input in web apps and APIs.
21
+
22
+
**What's good about it:**
19
23
20
24
-**O(n) guaranteed** — Hand-written state machines, no regex backtracking
21
25
-**Zero ReDoS** — No exploitable patterns, safe for untrusted input
22
26
-**Thread-safe** — Immutable state, optimized for Python 3.14t free-threading
23
-
-**Pygments compatible** — Drop-in CSS class compatibility
27
+
-**Pygments compatible** — Drop-in CSS class compatibility for existing themes
24
28
-**55 languages** — Python, JavaScript, Rust, Go, and 51 more
25
29
26
30
---
@@ -220,13 +224,11 @@ All public APIs are thread-safe:
220
224
221
225
## Performance
222
226
223
-
Benchmarked against Pygments on a 10,000-line Python file:
0 commit comments