According to plugin documentation, TrailingSpaces -plugin is capable to do exactly what you wanted (among of other things).
Служба підтримки клієнтів працює на UserEcho
According to plugin documentation, TrailingSpaces -plugin is capable to do exactly what you wanted (among of other things).