chroma
chroma copied to clipboard
Support for line numbers with the terminal (ANSI) formatters?
I see a few related issues and merged PR that add support for table-based HTMl line numbers.
I don't see similar support for the ANSI / terminal formatters.
Is anyone else interested in this?
I've worked around the lack of this feature by doing something like this:
https://github.com/prologic/ed/blob/61c5cac476857fa3c894e5723c0e3e5a7e55b723/commands.go#L88-L116
Which uses:
https://github.com/prologic/ed/blob/61c5cac476857fa3c894e5723c0e3e5a7e55b723/utils.go#L78-L112
I think it would be a useful feature to have.
I would put up a PR myself as I'd really like this for ed; sadly however whilst I'm familiar with ANSI sequences and understand them I don't really have the visual/artistic skills to pull this off with the right choice of colours/backgrounds/etc. Maybe someone can chime in here with some suggestions?