drscheme:rep:insert-error-in-text/highlight-errors in DrScheme Tools Functions
(drscheme:rep:insert-error-in-text/highlight-errors -> void?
text highlight-errors msg exn dir)
text : (is-a?/c text%)
highlight-errors : ((listof (list/p (is-a?/c text%) number? number?)) . -> . void?)
msg : string?
exn : exn?
dir : (union false? (and/c string? directory-exists?))
Formats and inserts the error message described by
msg and exn into the text
The highlight-errors argument is used to highlight the
source location of the error.
The msg and exn arguments are expected to
come from the
,
when the
error-display-handlererror-print-source-location
parameter is set to #f.
The user-dir argument is the current directory of
the program where the error occurred. If it is a string,
it is used to shorten the path the file where the error
occurred.
See also
drscheme:rep:insert-error-in-text.