You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often use bat to syntax highlight files from the internet, for example:
curl https://example.com | bat --language html
It would be nice if I could just do this instead:
bat https://example.com
and it detected the language from the Content-Type header. This might cause issues with filenames that look like URLs, but that could be solved by also adding support for the file scheme: file:///path/to/file and maybe adding a warning if there's a file with the same name
The text was updated successfully, but these errors were encountered:
Thanks for the feedback/suggestion. As bat is primarily a cat replacement, I personally don't feel this feature would be in scope. Sounds perfect for a wrapper script though! Maybe suggest it on https://github.com/eth-p/bat-extras? :)
I often use bat to syntax highlight files from the internet, for example:
curl https://example.com | bat --language html
It would be nice if I could just do this instead:
and it detected the language from the
Content-Type
header. This might cause issues with filenames that look like URLs, but that could be solved by also adding support for the file scheme:file:///path/to/file
and maybe adding a warning if there's a file with the same nameThe text was updated successfully, but these errors were encountered: