0

I recently installed Nano manually. I downloaded and installed the latest version from the site: This one and this one

I installed both (ncrurses 6.2 and nano 5.8) with commands:

mkdir /tmp/myfiles
cd /tmp/myfiles
tar zxvf ... for ncrurses
tar -zxvf ... for nano
./configure
make
make install

Although it was installed, it was not colored (And in the end I did not find a way to remove it too، And I used the nuclear option).

Why was the nano that was installed manually not colored?

1 Answers1

1

I believe nano is B/W by default. You can set the colors in /etc/nanorc, like this:

## Paint the interface elements of nano.
## These are examples; by default there are no colors.
set titlecolor black,green
set statuscolor black,yellow
# set selectedcolor brightwhite,magenta
set numbercolor yellow
set keycolor cyan
set functioncolor white

However, syntax highlighting should be colored by default. This thread has information about syntax highlighting in nano - check if the directory /usr/share/nano/ is in fact included in your nanorc file:

include /usr/share/nano/*.nanorc

In addition, for the syntax highlighting to take effect, the file must either have the correct extension, or the correct shebang (#!) in the beginning.

Artur Meinild
  • 26,018