10

I was checking out this question on SO, and noticed that there is no syntax highlighting for the code snippet.

I realise that Fortran is a pretty obscure language, especially on SO, so I don't really expect it to get highlighting unless it gets added to Google Prettify.

5
  • This should be as easy as providing a Fortran grammar file for the google-code-prettify project. You can see other grammar files at code.google.com/p/google-code-prettify/source/browse/…
    – jscs
    May 4, 2013 at 18:01
  • The linked question was just edited, and apparently there is some highlighting. As for fixing the rest my self, I just clicked the question because it was mistagged, I know nothing about Fortran other than that it exists. :) May 4, 2013 at 18:05
  • @JoachimPileborg It was me who edit it. I tried <!-- language: lang-fortran -->, but the language is not specified here. So I guess this is a default highlighting for some other languages.
    – Antony
    May 4, 2013 at 18:07
  • 2
    <!-- language: lang-pascal --> does a fairly good job, e.g. here (well, apart from the strings...)
    – Mat
    May 4, 2013 at 18:09
  • <!-- language: lang-fortran --> works now, due to moving to highlight.js. See highlightjs.org/static/demo
    – kelvin
    Oct 19, 2020 at 13:19

1 Answer 1

1

If this is a feature request for adding a specific language to the current set of syntax highlighting languages, then you should refer to the linked FAQ:

Stack Exchange does not have its own syntax highlighting engine. It uses Google Code Prettify. Therefore, any bugs and feature requests regarding syntax highlighting cannot be handled by Stack Exchange and should be directed to the team behind Google Code Prettify.

In the mean time (as suggested in comment), use lang-pascal as a partial alternative.

1
  • 1
    You're exactly right that this is answered in the FAQ, but better to flag the question as a duplicate rather than answer it. Jan 27, 2015 at 9:21

Not the answer you're looking for? Browse other questions tagged .