help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-nano] How to disable syntax coloring?


From: Benno Schulenberg
Subject: Re: [Help-nano] How to disable syntax coloring?
Date: Tue, 23 Feb 2016 19:30:25 +0100

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]