Re: How to disable syntax coloring?

Benno Schulenberg <[email protected]>
Newsgroups gmane.editors.nano.general
Message-ID <1456252225.2610461.529669802.50384C24@webmail.messagingengine.com>
> Hello, how do I disable syntax coloring on nano? I am using OS X.

Which version of nano?
Do you have a .nanorc file?
If yes, what's in it?

Anyway, there are several ways to do this:

1) If you just want to switch off colours for the moment,
use M-Y -- that is Alt+Y or Cmd+Y.

2) If you don't want to see colours during any session
of nano, you could make an alias:

   alias nano="nano --syntax=none"

3) If you want to disable colours more permanently,
run:

    sudo nano /etc/nanorc

find the lines that start with the word "include"
(maybe there is just one, maybe there are several),
and put a # character in front of the word.  Save
and exit.  The next time you start nano, it should
be colourless.

Benno

-- 
http://www.fastmail.com - Email service worth paying for. Try it for free
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.