The colors used by default for syntax highlighting in nano may be inconvenient for reading. You can change the colors with the following command: sed -i "s#color cyan#color blue#; s#color brightyellow#color red#" /usr/share/nano/sh.nanorc
Also, you can use the vi editor as an alternative; the commands for exiting and saving a file will be different then.