Item11977: Add fortran 90 (f90) to SyntaxHighlightingPlugin
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
enscript supports f90 (with enscript > 1.6.5.1) but it is filtered out by the
SyntaxHighlightingPlugin
Here is a patch to fix it:
diff --git a/lib/Foswiki/Plugins/SyntaxHighlightingPlugin.pm b/lib/Foswiki/Plugins/SyntaxHighlightingPlugin.pm
index 0c41fb9..0976ca4 100644
--- a/lib/Foswiki/Plugins/SyntaxHighlightingPlugin.pm
+++ b/lib/Foswiki/Plugins/SyntaxHighlightingPlugin.pm
@@ -63,6 +63,7 @@ our %langs = (
"diffs" => "diffs",
"diffu" => "diffu",
"elisp" => "elisp",
+ "f90" => "f90",
"fortran" => "fortran",
"fortran_pp" => "fortran_pp",
"haskell" => "haskell",
A more permanent fix would be to check which languages enscript supports, using something like
http://foswiki.org/Extensions/SyntaxHighlightingPlugin#Examples
Thanks for neat plug-in.
--
EvanWard - 27 Jun 2012
Maybe on install (or from configure) we could run
enscript --help-highlight
to find out what languages the installed version of enscript supports and provide support for those languages. Then again, enscript doesn't get updated very often, so might be overkill...
If I find time I might look into this, otherwise anyone is free to take this on.
--
AndrewJones - 24 Jul 2012
Done as per
Item15082
--
MichaelDaum - 26 Apr 2022