pygments-rs
Rust bindings for Pygments, a powerful syntax highlighter.
Requirements
- Rust nightly
- A Python Runtime (2.7 or 3.x)
- pygments 2.0
How to use
extern crate pygments;
use pygments::highlight;
fn main() {
// Format some code
let result = pygments::highlight("print [123, 456, None]");
println!("{}", result);
}
License
MIT