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
[]
= "0.1"
use Highlighter;
let highlighter = new;
let highlighted = highlighter.highlight;
println!;
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