GitHunt
MR

mre/pygments-rs

Rust bindings for pygments, a powerful syntax highlighter

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

Languages

Rust100.0%

Contributors

MIT License
Created January 8, 2016
Updated September 12, 2022
mre/pygments-rs | GitHunt