FW: nano and color



Hi,

When 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
same
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



Relevant Pages

  • Re: nano and color
    ... will see color coded script Lines. ... On a Lenny system I never have color coding. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: nano and color
    ... On a Lenny system I never have color coding. ... On my lenny system there is a file called /etc/nanorc. ... you should get syntax highlighting for files with the .sh extension. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: FreeAgent USB HDD (SOLVED - I hope!!)
    ... downloaded the necessary ntfs-3g driver and all was fine. ... Today I plug it in and my Lenny system can't find it at all. ... I did a more in-depth Google search and came across this: ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • FreeAgent USB HDD
    ... downloaded the necessary ntfs-3g driver and all was fine. ... Today I plug it in and my Lenny system can't find it at all. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: FreeAgent USB HDD
    ... Today I plug it in and my Lenny system can't find it at all. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)