An open API service indexing awesome lists of open source software.

https://github.com/mre/pygments-rs

Rust bindings for pygments, a powerful syntax highlighter
https://github.com/mre/pygments-rs

pygments pygments-rs rust-bindings syntax-highlighter

Last synced: 6 months ago
JSON representation

Rust bindings for pygments, a powerful syntax highlighter

Awesome Lists containing this project

README

          

# pygments-rs

Rust bindings for [Pygments](http://pygments.org/), a powerful syntax highlighter.

### Requirements

* Rust nightly
* A Python Runtime (2.7 or 3.x)
* [pygments 2.0](https://pypi.python.org/pypi/Pygments)

### How to use

```Rust
extern crate pygments;

use pygments::highlight;

fn main() {
// Format some code
let result = pygments::highlight("print [123, 456, None]");
println!("{}", result);
}
```

# License

MIT