streamdown-syntax

Crates.iostreamdown-syntax
lib.rsstreamdown-syntax
version0.1.3
created_at2025-12-31 20:22:40.33848+00
updated_at2025-12-31 21:04:45.663785+00
descriptionSyntax highlighting for streamdown via syntect
homepage
repositoryhttps://github.com/fed-stew/streamdown-rs
max_upload_size
id2015293
size41,874
(janfeddersen-wq)

documentation

README

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

Commit count: 0

cargo fmt