highlight_error

Crates.iohighlight_error
lib.rshighlight_error
version0.1.1
sourcesrc
created_at2022-07-14 18:47:45.442502
updated_at2022-07-14 19:06:58.067486
descriptionHighlights an error for printing
homepage
repositoryhttps://github.com/VictorTaelin/rust_highlight_error
max_upload_size
id625843
size18,302
Victor Taelin (VictorTaelin)

documentation

README

Highlight Error

Rust util that highlights an error.

Example

The code below:

fn main() {
  let code = "functon is_zero (x) {
    if (x == 0) [
      return true;
    ] else {
      return false;
    }
  }";
  println!("{}", highlight_error::highlight_error(38, 64, &code));
}

Will output:

example.png

Commit count: 5

cargo fmt