walles / moar

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

Syntax highlighting in moar #128

Closed ciscohack closed 1 year ago

ciscohack commented 1 year ago

I know moar use chroma fo syntax highlight but i don't know why but if I open any .log file in moar having IP address and another thing moar does not highlight but if I open the same file in Bat a cat tool it does. shall we have auto syntax highlighter

example:-- image

Bat a CAT :- image

walles commented 1 year ago

I can't speak for Bat, but I was unable to find any request for this in Chroma: https://github.com/alecthomas/chroma/issues?q=is%3Aissue+is%3Aopen+log

Maybe you should try there?

walles commented 1 year ago

I believe this is an upstream issue.

Feel free to reopen if you disagree.

ciscohack commented 9 months ago

I didn't get it. Do you mean to say the style color only works with programming files and for the rest other file types like txt and log, use the terminal color. but BAT has no such limit.. it can render color style for any file whatever I choose But yes syntax highlight will work only for programming files. I expect same with moar ... request you to add this if missing

ciscohack commented 9 months ago

Not asking to highlight syntax through BAT support but at least color change for file I parse in moar

walles commented 9 months ago

Do you have a screenshot of what you'd expect?