#syntax-highlighting #syntect #streamdown #streaming #highlight #markdown-renderer

streamdown-syntax

Syntax highlighting for streamdown via syntect

3 releases

0.1.4 Jan 26, 2026
0.1.3 Dec 31, 2025
0.1.2 Dec 31, 2025
0.1.1 Dec 31, 2025
0.1.0 Dec 31, 2025

#2300 in Text processing

Download history 11/week @ 2026-01-06 113/week @ 2026-01-13 33/week @ 2026-01-20 62/week @ 2026-01-27

219 downloads per month
Used in 4 crates (2 directly)

MIT license

58KB
1K SLoC

streamdown-syntax

Syntax highlighting for the streamdown streaming markdown renderer.

Overview

Provides syntax highlighting via syntect:

  • Language detection - Automatic language identification
  • Theme support - Customizable color themes
  • ANSI output - Terminal-ready highlighted output
  • Wide language support - 100+ programming languages

Usage

[dependencies]
streamdown-syntax = "0.1"
use streamdown_syntax::Highlighter;

let highlighter = Highlighter::new();
let highlighted = highlighter.highlight("fn main() {}", "rust");
println!("{}", highlighted);

Supported Languages

All languages supported by syntect, including:

  • Rust, Python, JavaScript, TypeScript
  • Go, C, C++, Java, Kotlin
  • Ruby, PHP, Swift, Scala
  • HTML, CSS, JSON, YAML, TOML
  • Bash, SQL, Markdown, and many more

Part of Streamdown

This is a component of streamdown-rs, a streaming markdown renderer for modern terminals.

License

MIT

Dependencies

~3.5–7MB
~117K SLoC