Highlight trailing whitespace
It would be nice to be able to see trailing whitespace when viewing a file. Perhaps it could be highlighted in a special color.
Have you considered using bat -A to show all special characters? Because currently the only way to currently achieve this is when the syntax definition scopes trailing whitespace specially, like for Markdown. Otherwise, we'd need to make some major changes to facilitate this functionality: https://github.com/sharkdp/bat/issues/414#issuecomment-689784292
Another option would be a special "trailing_whitespace" syntax that would only highlight trailing whitespace. This way, users could do bat -ltrailing or bat -ltrailing_whitespace in case they are interested in debugging whitespace issues.