Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 445 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 445 Bytes

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