Closed blefloch closed 5 years ago
This probably interacts badly with line-wrapping. It could be done in a post-processing step, or by doubling the line-length and replacing each character by two characters, the first indicating the style.
Thinking some more, this is really hard. On the one hand it can only work in some terminals and engines (e.g. pdfTeX and XeTeX need to be called with the -8bit flag). On the other hand, the current architecture of unravel
doesn't allow to have independently a display version and a real version of the input, previous tokens, and output.
Probably not worth it.
On my terminal, running
Gives me "normalFANCYnormal" with "FANCY" written in bold blue font and crossed through. It would sometimes be very useful to have colors distinguishing category codes of tokens, or underlining different macro parameters, etc.