Crates.io | hi-doc |
lib.rs | hi-doc |
version | 0.1.1 |
source | src |
created_at | 2024-02-20 22:02:51.122432 |
updated_at | 2024-04-07 15:43:59.613224 |
description | Diagnostics formatting library |
homepage | |
repository | |
max_upload_size | |
id | 1147149 |
size | 66,893 |
Diagnostic formatting library.
Most diagnostic formatting libraries implement both formatting and span/source management simultaneously. This can be beneficial for consistency, but it requires tying the code of your library to a third-party annotation library, which can be inconvenient, especially when your library already has its own logic for diagnostics.
hi-doc solely implements diagnostic formatting, allowing for seamless integration with existing diagnostic logic within a library.
Multiple ranges per annotation
Multi-line annotations
Multi-line annotation text
Support for unicode fullwidth characters
Correct handling of non-printable control characters, and configurable tab width
Formatting of the annotation text itself
Syntax highlightning in annotated text
Support for non-colored terminals
Place annotations on top of the line