#5828 closed enhancement (duplicate)
enable fortran 90 high-lighting
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | rendering | Version: | devel |
| Severity: | minor | Keywords: | pygments |
| Cc: | flad@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal 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 (0)
Change History (9)
comment:1 by , 18 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
comment:2 by , 18 years ago
| Milestone: | 0.11 |
|---|
comment:3 by , 17 years ago
| Keywords: | pygments added; enscript removed |
|---|---|
| Resolution: | wontfix |
| Status: | closed → 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:5 by , 17 years ago
| Component: | version control/browser → rendering |
|---|---|
| Milestone: | 0.11-retriage → 0.13 |
comment:6 by , 16 years ago
Pygments only supports *.f, *.f90, so we might still want to add *.f95 and the upper case variants.
comment:7 by , 15 years ago
comment:8 by , 15 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | reopened → closed |
comment:9 by , 15 years ago
| Milestone: | next-major-0.1X |
|---|



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