If the trailing-whitespace highlighting annoys you, you can edit /usr/share/nano/sh.nanorc and remove or comment out the line that says: color ,green "[[:space:]]+$". Problem solved. (You will then probably want to do the same for the other *.nanorc files there.)
If the trailing-whitespace highlighting annoys you, you can edit /usr/share/ nano/sh. nanorc and remove or comment out the line that says: color ,green "[[:space:]]+$". Problem solved. (You will then probably want to do the same for the other *.nanorc files there.)