nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] colorization based upon #! ?


From: Mike Frysinger
Subject: [Nano-devel] colorization based upon #! ?
Date: Wed, 7 Jun 2006 08:17:44 -0400
User-agent: KMail/1.9.1

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 ;)
-mike

Attachment: pgpxuNCPoBlZP.pgp
Description: PGP signature


reply via email to

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