@Edent because this information is useful to people as well as to machines, I think any solution really ought to involve the programming language name being visible in a default rendering, rather than hidden in metadata? The same argument could be made about human languages, but there are fewer examples of authors wanting to show that explicitly, and lots of cases where people label up which programming language is used for a particular example block.