Skip to content

Rust bindings for pygments, a powerful syntax highlighter

License

Notifications You must be signed in to change notification settings

mre/pygments-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages