mre / pygments-rs

Rust bindings for pygments, a powerful syntax highlighter

Repository from Github https://github.commre/pygments-rsRepository from Github https://github.commre/pygments-rs

pygments-rs

Rust bindings for Pygments, a powerful syntax highlighter.

Requirements

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

About

Rust bindings for pygments, a powerful syntax highlighter

License:MIT License


Languages

Language:Rust 100.0%