Add line numbers for text-mode.