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
- Host: GitHub
- URL: https://github.com/mre/pygments-rs
- Owner: mre
- License: mit
- Created: 2016-01-08T14:54:07.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-09T15:17:23.000Z (about 10 years ago)
- Last Synced: 2025-07-07T19:00:31.744Z (7 months ago)
- Topics: pygments, pygments-rs, rust-bindings, syntax-highlighter
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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