Lyneate
Display beautiful code reports in the terminal with support for single-line and multi-line highlighting.
Example
use Colorize;
use Report;
Usage
This crate provides:
- the
Report
struct which takes the source code and an iterator over the span, text, and color of all messages - the
Theme
,ThemeChars
,ThemeEffects
, andThemeSizing
structs which can be used to customize the appearance of a report display
Code spans can be byte-aligned or char-aligned. Different methods for constructing a Report
for either are provided.
The API is kept simple in order to allow as much flexibility as possible to the user. It does not make any assumptions or care about the provenance of the source code.
Planned Features
- Colorless support.