[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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




Reply to: