Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting in moar #128

Closed
ciscohack opened this issue Mar 2, 2023 · 5 comments
Closed

Syntax highlighting in moar #128

ciscohack opened this issue Mar 2, 2023 · 5 comments

Comments

@ciscohack
Copy link

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
Copy link
Owner

walles commented Mar 3, 2023

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
Copy link
Owner

walles commented May 3, 2023

I believe this is an upstream issue.

Feel free to reopen if you disagree.

@ciscohack
Copy link
Author

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
Copy link
Author

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

@walles
Copy link
Owner

walles commented Oct 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants