walles / moar

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

Is there a way to open a `.log` file with syntax color of a given language #104

Closed dathinaios closed 1 year ago

dathinaios commented 1 year ago

I have a file with extension .log that I would like to open so that it displays as if it was Rust code. It is just quite helpful to have color for the different elements. Is that possible?

walles commented 1 year ago

No.

However, if the highlighting library I'm using would support .log files you'd get that out of the box, so I'd suggest you open a feature request (or a PR!) with them: https://github.com/alecthomas/chroma/issues