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