axiros/terminal_markdown_viewer

Code Highlight Feature

lucamartellucci opened this issue · 2 comments

Hi,
thank you for this wanderful tool!
is it possible to have source code syntax highlighting?
thank you

Luca

axgkl commented

Hi, thanks Luca, the tool is still pretty buggy, but worked for my stuff. Have to really do a better parser someday. Regarding the highlighting - not understood, it actually does syntax highlighting, e.g.:

~ $ echo -e '```python\nclass Foo: bar='baz'\n```' | mdv -

(using the new "-" feature from the version pushed today) but worked also before with source code in files, no?

Or do you mean syn hiliting of pure source code w/o the fenced code markers (```) ?

axgkl commented

Hi, if you meant the source code hiliting: I added it. See Readme