💾 Archived View for rawtext.club › ~sloum › geminilist › 005658.gmi captured on 2024-02-05 at 11:08:26. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
Nathan Galt mailinglists at ngalt.com
Fri Feb 26 02:26:55 GMT 2021
- - - - - - - - - - - - - - - - - - -
On Thu, Feb 25, 2021, at 5:40 PM, John Cowan wrote:
I don't understand what the benefit of the alt text "Python" is here. Presumably if you are reading a document with embedded Python, you are expected to, and want to, read the Python, just as if you have an (English) document with embedded Greek, you probably want to read the Greek.
That kind of thing is for <https://pygments.org/> and similar code colorizers.
From The Spec (emphasis added):
Alt text may **also** be used for computer source code to identify the programming language which advanced clients may use for syntax highlighting.
I'm not _too_ pleased by how we're using one field for two different things (one is a description; the other is a thing for dumb parsers), but that's the spec we've got.
Previously, on this list, we discussed having the alt text be on the first ``` and parser hints be on the last ```, but I'm not sure anything came of that particular discussion other than some try-outs in a vacuum.