Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#1711 closed enhancement (fixed)

enscript mimeviewer doesn't recognize all supported formats

Reported by: Rob Kendrick <trac@…> Owned by: Matthew Good
Priority: normal Milestone: 0.9
Component: version control/browser Version: devel
Severity: normal Keywords: enscript
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Trac does not automatically detect formats that enscript can colourise, meaning that you have to go into the source and dig about in at least two places that don't seem to be documented in order to add the new times.

Perhaps add automatic detection of formats enscript can colourise? (I don't know if that would be possible). Or at least a documented way of doing it somewhere in the configuration file.

(In this case, I wanted it to colourise Lua.)

Attachments (0)

Change History (7)

comment:1 by Rob Kendrick <trac@…>, 19 years ago

Component: generalbrowser

comment:2 by Rob Kendrick <trac@…>, 19 years ago

Version: 0.8.40.8.3

comment:3 by Matthew Good, 19 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Matthew Good
Severity: minorenhancement
Status: newassigned
Summary: Trac does not colourise some source file types even if enscript supports themensript mimeviewer doesn't recognize all supported formats

This will list the file types enscript can highlight:

enscript --help-highlight

However, this can't be used at runtime for Trac's mimeviewer since it doesn't provide information about the file extensions or mimetypes of the formats.

I'll add the missing formats to Trac and I'll put a note over on TracSyntaxColoring about where to add new formats.

comment:4 by Christopher Lenz, 19 years ago

Summary: ensript mimeviewer doesn't recognize all supported formatsenscript mimeviewer doesn't recognize all supported formats

comment:5 by Matthew Good, 19 years ago

Resolution: fixed
Status: assignedclosed

Lua highlighting is added in [2169].

There are a couple other languages supported by enscript that we don't support, but I'm not finding good information on extensions and mimetypes for them. If people are using those languages they can add another request form them.

comment:6 by dna, 19 years ago

Keywords: enscript added
Resolution: fixed
Status: closedreopened
Version: 0.8.3devel

Please add Visual Basic .NET too, thanks

'vb':'text/x-vba',

comment:7 by Matthew Good, 19 years ago

Resolution: fixed
Status: reopenedclosed

Ok, I added the .vb extension in [2171]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.