Conceal ANSI escape codes and colour text #65
Comments
I want it to be highlighted like this:
More explanation: |
If you are looking for the text to change ( If someone wants to try adding this functionality you can do so by extending https://github.com/rrethy/hexokinase and adding the ability to recognize ansi escapes codes, then you would add a highlighter based on Alternatively, Colorizer has this functionality. |
At least highlighting would be nice to have, concealing may not be so important. |
This would be a REALLY nice solution to Olical/conjure#53 - I think I hacked colorizer or something to get it to do what I wanted, I think this plugin could be a massive improvement on that! (conjure introduces a log that's kind of like a REPL and CAN contain ansi escape sequences, so having them displayed correctly is a really nice experience) In my experience, AnsiEsc works but had a bunch of weird quirks, like it would break the rest of the syntax highlighting and vanish when you switched windows sometimes. I hacked it to get it to overlay the escape code colouring on top of my existing theme, you can find that hacked version here, maybe people can just use that: https://github.com/Olical/AnsiEsc I think colorizer had a bunch of issues too, see the issue I linked for more info on the state of colouring and hiding ansi escape sequences in nvim. |
This will be very nice to have, In my case only https://github.com/chrisbra/Colorizer supported this. |
I try to use Hexokinase_palettes to set up ansi color, but not success.
Can you help me see how to set this situation?
text:
display in term:
color flag is
\e[
,00;32m
is color name, text after this flag add color(not display color flag),\e[0m
stop add color, or another color flag change the next text color\e[00;34m
The text was updated successfully, but these errors were encountered: