chrisbra / Colorizer

color hex codes and color names
547 stars 30 forks source link

Colorizer: Some error occured here: ColorTerm #86

Closed atsaloli closed 3 years ago

atsaloli commented 3 years ago

Hello,

I just installed Colorizer because I would like to render escape codes in Vim.

I ran :.,$ ! mdless /some/markdown/file.md to convert a Markdown file to Text using mdless but I got the error:

Colorizer: Some error occured here:  ColorTerm

So, for now, I'm using mdless --no-color but I'd really like to be able to display colors in my Vim session because I'm teaching a course inside Vim, my source material is in Markdown, and I would like to render each file as it comes up.

How do I troubleshoot an error like this, please?

chrisbra commented 3 years ago

so what does the resulting file look like? Note that highlighting ANSI escape sequences is a bit brittle.

atsaloli commented 3 years ago

Thanks for the quick response, Christian, much appreciated.

As I recall, the resulting file looks no different -- still shows the ANSI escape codes in the vim window rather than rendering them (I can see [ ; and the other characters).

Thanks for letting me know that highlighting ANSI escape sequences is brittle. I've found I can use mdless instead to accomplish my aim.

I'm all set. Thank you very much for your help!

Best, Aleksey