Is there a way to highlight (set the background color for example) the space before a line, when it's indentation isn't aligned to the current indentation-width?
4 spaces indentation for eg:
fn my_func() {
if foo() {
##bar();
blob();
###fez();
baz();
}
}
where the #
characters represent the background showing a different color, back until the indentation is aligned to 4.
Of course this is only useful when code follows strict indentation conventions.
Note that I'm aware of emacs advanced auto-indentation features and indent-highlighting plugins, but would prefer something less intrusive that only shows up when there is an issue. A little like highlighting trailing spaces.