patchGNU nano - Patches: patch #6855, syntax hilighting hack to...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

patch #6855: syntax hilighting hack to highlight based on hashbangs

Submitted by:  Lars <penma>
Submitted on:  Sat 27 Jun 2009 02:53:20 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: None

Sat 27 Jun 2009 02:53:20 PM UTC, original submission:

This patch allows nano to find out which hilight to use not only based on extension, but also on the contents of the first line. The way it is implemented is not the best at the moment, it uses the same expression for the first line. It priorizes matches on extension, however. It takes away the need to name Perl scripts .pl to get syntax hilighting (for example)

Lars <penma>

 

Attached Files
file #18334:  nano-syntax-1.diff added by penma (618B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by penma (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 Jun 2009 02:53:20 PM UTCpenmaAttached File-=>Added nano-syntax-1.diff, #18334
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup