Johan Walles
Johan Walles
Is this what you're after? ``` cat build.sh | moar --lang=shell ``` If so, it's already in there :)
I assume you ran into this when viewing some particular file. What was the name of that file, and what kind of file was it?
@Shayan-To, what command are you using to have Chroma pick the language to use for syntax highlighting? `moar` currently uses Chroma's identify-by-file-name functionality, but not Chroma's identify-by-contents functionality.
@Shayan-To what's the full path to that nginx config file on your machine? I want to see if I can do better regarding figuring out the file type based on...
> Is the interactive language selection a difficult feature to implement? Somewhat, yes. Something that would be a lot easier might be to ensure your nginx config files get detected...
Given this information I would say that these two patterns should cover the files on your system: * `nginx.conf` * `nginx/*/*.conf` The current pattern is just `nginx.conf`: https://github.com/alecthomas/chroma/blob/b3104143efa8799cb956dda26c1bb637d695fc97/lexers/embedded/nginx_configuration_file.xml#L2-L7 Wanna make...
When you say that certain files are not "config" files, what does that mean? Are those files not in nginx config file format? Way back, on Apache, sites-enabled and sites-available...
Can you post the diff as well? Just do `git diff | cat` and post the output here? Or if the file contains invisible whitespace, maybe better to `git diff...
Did you try https://github.com/walles/riff for highlighting this diff? It's designed for making diffs more helpful. If that doesn't show the white space change I'll need to know what actually changed...
I'm really at a loss regarding what to do here. If this still repros on your work machine, are you running some other terminal there than at home? `tmux` or...