Edgewall Software
Modify

Ticket #5828 (closed enhancement: duplicate)

Opened 5 years ago

Last modified 14 months ago

enable fortran 90 high-lighting

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

Description

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

Change History

comment:1 Changed 5 years ago by nkantrowitz

  • Resolution set to wontfix
  • Status changed from new to closed

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

comment:2 Changed 5 years ago by eblot

  • Milestone 0.11 deleted

comment:3 Changed 4 years ago by david.huard@…

  • Keywords pygments added; enscript removed
  • Resolution wontfix deleted
  • Status changed from closed to reopened

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 Changed 3 years ago by rblank

  • Milestone set to 0.11-retriage

Related to #5533.

comment:5 Changed 3 years ago by cboos

  • Component changed from version control/browser to rendering
  • Milestone changed from 0.11-retriage to 0.13

comment:6 Changed 2 years ago by cboos

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

comment:7 Changed 16 months ago by Thijs Triemstra <lists@…>

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

comment:8 Changed 16 months ago by Thijs Triemstra <lists@…>

  • Resolution set to duplicate
  • Status changed from reopened to closed

comment:9 Changed 14 months ago by cboos

  • Milestone next-major-0.1X deleted
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.