Why was the nano that was installed manually not colored?
Solution 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.