walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
675 stars 19 forks source link

moar doesn't syntax highlight json #208

Closed timotheecour closed 4 months ago

timotheecour commented 6 months ago

moar doesn't syntax highlight json

I thought moar was using chroma to syntax highlight but: moar foo.json doesn't syntax highlight cat foo.json|moar --lang json doesn't syntax highlight

chroma foo.json works cat foo.json|chroma works cat foo.json|chroma --lexer=json works

moar should have a command line option to show what it can syntax highlight

even if it's simply outputting the contents of chroma --list (so long that is what it uses, although json bug above casts some doubts)

walles commented 6 months ago

Might be fixed in moar --version v1.23.11, this sounds like what was reported in #202.

Can you do moar --version?

walles commented 4 months ago

Assuming this was fixed together with #202.