highlight_error 0.1.1

Highlights an error for printing
Documentation

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