Opened 20 years ago
Closed 20 years ago
#1711 closed enhancement (fixed)
enscript mimeviewer doesn't recognize all supported formats
| Reported by: | 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 , 20 years ago
| Component: | general → browser |
|---|
comment:2 by , 20 years ago
| Version: | 0.8.4 → 0.8.3 |
|---|
comment:3 by , 20 years ago
| Milestone: | → 0.9 |
|---|---|
| Owner: | changed from to |
| Severity: | minor → enhancement |
| Status: | new → assigned |
| Summary: | Trac does not colourise some source file types even if enscript supports them → ensript mimeviewer doesn't recognize all supported formats |
comment:4 by , 20 years ago
| Summary: | ensript mimeviewer doesn't recognize all supported formats → enscript mimeviewer doesn't recognize all supported formats |
|---|
comment:5 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
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 , 20 years ago
| Keywords: | enscript added |
|---|---|
| Resolution: | fixed |
| Status: | closed → reopened |
| Version: | 0.8.3 → devel |
Please add Visual Basic .NET too, thanks
'vb':'text/x-vba',
comment:7 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Ok, I added the .vb extension in [2171]



This will list the file types enscript can 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.