FW: nano and color
- From: "Bonno Bloksma" <b.bloksma@xxxxxx>
- Date: Fri, 9 Sep 2011 11:03:35 +0200
Hi,
sameWhen using nano on a Squeeze system and I open a file with name.sh I will
see color coded script Lines. When I open a file line name.xxx with the
content there is no color coding.
On a Lenny system I never have color coding.
1) Where is this behaviour defined on my Squeeze system?
2) Can I enable it on my Lenny systems?
On my lenny system there is a file called /etc/nanorc. If you
uncomment the line which looks like
# include "/usr/share/nano/sh.nanorc"
so it looks like
include "/usr/share/nano/sh.nanorc"
you should get syntax highlighting for files with the .sh extension.
Highlighting for other languages can be enabled in the same way.
Aha, I had not yet found the /etc/nanorc file. I had noticed the presence of
the various /usr/share/nano/*.nanorc files but wondered why they were not
being used.
Strange that someone decided to disable this by default in Lenny.
Ok, it's working now, thanks.
Bonno Bloksma
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/00a301cc6ecf$5b9f8b90$12dea2b0$@bloksma@tio.nl
- Prev by Date: apt-get causes Segmentation fault
- Next by Date: Re: What happens to kernel.org ?
- Previous by thread: Re: nano and color
- Next by thread: Re: nano and color
- Index(es):
Relevant Pages
|