nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] colorization based upon #! ?


From: David Lawrence Ramsey
Subject: Re: [Nano-devel] colorization based upon #! ?
Date: Wed, 07 Jun 2006 23:43:48 -0400
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

Mike Frysinger wrote:
> wonder if anyone has thought of this (and i just missed it), but doing
> colorization based upon filename goes a long ways ... but another way
> to catch a lot of files that lack filename extensions would be to
> check the first line ...
> #!/bin/sh -> sh
> #!/bin/bash -> sh
> #!/usr/bin/perl -> perl
> etc...
>
> i'm not suggesting we string match the first line as a regexp would be
> much more appropriate, i'm just using straight strings above to keep
> the point clear ;)

Interesting idea, but what do you do to help colorize files that aren't
scripts?  Unless you eventually want nano to look at the output of
"file" to help colorize everything ;)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]