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: Mike Frysinger
Subject: Re: [Nano-devel] colorization based upon #! ?
Date: Thu, 8 Jun 2006 04:19:55 -0400
User-agent: KMail/1.9.1

On Wednesday 07 June 2006 23:43, David Lawrence Ramsey wrote:
> 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 ;)

well you wouldnt need to look at `file` ... it has libmagic.so you could 
interact with ...
-mike

Attachment: pgp3sVWnsN_RV.pgp
Description: PGP signature


reply via email to

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