Edgewall Software

Opened 19 years ago

Closed 18 years ago

#1447 closed enhancement (fixed)

first-line file content matching for syntax highlighting — at Version 1

Reported by: xris@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.10
Component: general Version: 0.8.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I know it's possible to set mime types in svn (which I'm using now), but it would also be nice to have a first-line match for syntax highlighting. Could then just add something like /^#!.*perl/ go along with text/x-perl, and any matching file or code block could be detected as perl without a mime type being set (great for inline blocks, etc).

Change History (1)

comment:1 by Christian Boos, 18 years ago

Description: modified (diff)
Milestone: 0.10
Resolution: fixed
Status: newclosed

This has been implemented in r2653.

Note: See TracTickets for help on using tickets.