Codeframe

Capture pretty codeframes from a code snippet.

```rust use codeframe::Codeframe;

let rawlines = "macrorules! testsimplestyle { ($string:expr, $style:ident) => { #[test] fn $style() { asserteq!( s.$style().tostring(), ansiterm::Style::new().$style().paint(s).tostring() ) } }; }"; let codeframe = Codeframe::new(rawlines, 5).setcolor("red").capture(); ```

Imgur

Colors Supported

Features