Edgewall Software

Opened 13 years ago

Closed 10 years ago

Last modified 10 years ago

#5828 closed enhancement (duplicate)

enable fortran 90 high-lighting

Reported by: mir@… Owned by: Christian Boos
Priority: normal Milestone:
Component: rendering Version: devel
Severity: minor Keywords: pygments
Cc: flad@… Branch:
Release Notes:
API Changes:
Internal Changes:


please include f90 / f95 mimetype-entries in mimeview/api.py:

--- api.py-orig 2007-08-06 15:16:38.000000000 +0200
+++ api.py      2007-08-06 15:26:52.000000000 +0200
@@ -109,2 +109,3 @@
     'text/x-fortran':         ['f'],
+    'text/x-f90':             ['f90', 'F90', 'f95', 'F95'],
     'text/x-haskell':         ['hs'],

and mimeview/enscript.py:

--- enscript.py-orig    2007-08-06 15:18:20.000000000 +0200
+++ enscript.py 2007-08-06 15:27:41.000000000 +0200
@@ -46,2 +46,3 @@
     'text/x-fortran':           ('fortran', 2),
+    'text/x-f90':               ('f90', 2),
     'text/x-haskell':           ('haskell', 2),

… for those who are obliged to use fortran90 and have a valid enscript f90.st style file

thanks a lot

Attachments (0)

Change History (9)

comment:1 by Noah Kantrowitz, 13 years ago

Resolution: wontfix
Status: newclosed

F90 is not in the default distribution. You should add this locally using the mime_map option in trac.ini.

comment:2 by Emmanuel Blot, 13 years ago

Milestone: 0.11

comment:3 by david.huard@…, 12 years ago

Keywords: pygments added; enscript removed
Resolution: wontfix
Status: closedreopened

Starting with pygments 0.10, f90 format is supported in the standard fortran lexer, so that 'text/x-fortran': ['f', 'F', 'f90', 'f95', 'F90', 'F95'], in mimeview/api.py fixes the problem with no additional dependency. I have tested it with trac svn version.

comment:4 by Remy Blank, 12 years ago

Milestone: 0.11-retriage

Related to #5533.

comment:5 by Christian Boos, 12 years ago

Component: version control/browserrendering
Milestone: 0.11-retriage0.13

comment:6 by Christian Boos, 11 years ago

Pygments only supports *.f, *.f90, so we might still want to add *.f95 and the upper case variants.

comment:7 by Thijs Triemstra <lists@…>, 10 years ago

Because tickets #5613 and #8570 were closed as duplicates of #5533, I'll close this one as well.

comment:8 by Thijs Triemstra <lists@…>, 10 years ago

Resolution: duplicate
Status: reopenedclosed

comment:9 by Christian Boos, 10 years ago

Milestone: next-major-0.1X

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.