Score:0

Why was the nano that was installed manually not colored?

bs flag

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?

Score:1
vn flag

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.

user487583 avatar
bs flag
The codes were similar to the way you look with ```cat```.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.