1

I use nano as my text editor for development, so I would want trailing spaces to be highlighted. Right now I am just adding the line:

color ,green "[[:space:]]+$"

to all the files included on my .nanorc.

But I want to add that line directly on my .nanorc.

Apparently you can't have color commands without a syntax, but I want that to apply to all syntaxes.

How do I do this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.